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

Combo box pre-populations

AbbyLP
Registered: May 14 2009
Posts: 2

Hi all,

I'm new to Acrobat forms and I have been asked to create a form where selection of one field in a combo box activates a second set of fields in a second combo box. I need each value in the first combo box to activate a new list in a second combo box. Is this possible to do with just two combo boxes or does it need to get more complicated?

Is there an easy way to do this with Javascript? I have been reading through Thom Parker's tutorial but can't seem to make this work.

Thanks.

My Product Information:
Acrobat Pro 8.1.7, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Obviously if youv'e been reading the article and downloaded the samples youv'e seen that it's possible. The AcroForm sample contains exactly the code you need.

The scripting for list handling is not the easiest, or most intuitive. You'll need to develop some familiarity with the Acrobat scripting environment before diving into the list code.

Take a look at these videos:
http://www.pdfscripting.com/public/34.cfm#FirstForm

Also look at the console window tutorials below.

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