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

need to validate combo boxes based on user selection

Elya42
Registered: Mar 3 2009
Posts: 59
Answered

I have 4 combo boxes - each have a range of numbers to select from 1-10
If user selects 8 in the first box, the user cannot select any number, in the next box, higher then that of the previous box (8)
If the user selects 6 in the second box then the number in the third box cannot exceed the 6 selected in second box.

In a 5th box the numbers begin at zero (0) and if the user selects the zero (0), a specific page in the pdf document needs to open.

I am a loss on how to accomplish this, or if it is even possible?

Elaine M

My Product Information:
Acrobat Pro 9.1, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Why yes, it is possible. But it requires a bit of tricky scripting. Probably the best way to control user selections is to limit the options they have availible by resetting the combobox items each time a selection is made. Here's an article on programming lists and combobox fields.

http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle/

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.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window[/b][/url]

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

Elya42
Registered: Mar 3 2009
Posts: 59
I have been studying the tutorial link you provided. It is challenging for a newbie but I think I am following it okay. I would like to thank you, again, for all the help you have provided. It has been most invaluable.

Elaine M