These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Repeating Subform Dropdown list Problem

EF11
Registered: Jun 4 2010
Posts: 12

Hi, first off: I'm not a programmer.

I have created a repeating form based on an example that was downloaded from the adobe site and it uses javascript. I have modified it slightly to work the way I want it to. My dropdowns were created by adding the items to the object:field tab not by using scripting.

My problem:
I have three dropdowns on my subform and when I preview the pdf, they all display the instance number on the dropdown.

The dropdown list allows me to pick what I want but as soon as I exit the field it immediately returns to the instance number and does not retain my selection. (commit on exit)

I have no idea how to fix this problem. Is there anyone that can help me out? Thanks!

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
It sounds like there is a script affecting the dropdown. Are there any scripts on any events for the dropdown?

How is it that the instance number gets on the dropdown? This could only be done with a script, not necessarily on the dropdown element. You'll need to understand this to fix your issue.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

EF11
Registered: Jun 4 2010
Posts: 12
There is some scripting that controls the instance number that I got from the adobe example that I downloaded. It looks like it is on the add/remove instance buttons.
EF11
Registered: Jun 4 2010
Posts: 12
After looking at the javascript further, I see what the problem is:

I had modified the text fields to be dropdown lists and the following code was attached to those fields:

// This script displays the instance value of the row in this text field.
this.parent.index;

Once I commented them out, it appears to be working okay.

Sorry and thank you for your response!