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

Validating Dropdown Menus

vishnu
Registered: Apr 13 2011
Posts: 3

Hi all,
 
I wanted to find out about Dropdown Menus
 
Here what it is:
 
I have two dropdown menus
 
First one is called No_of_Days and has two values 1 and 2
The Second one has 10 values 1 - 10 and named No_of_Par
 
A TextField (Price) that shows an amount when the two dropdown values are selected
 
What I want:
 
When No_of_days = 1 and No_of_Par is <= 4 the value of the price = 16000 and if No_of_days = 2 and No_of_Par is <= 4, Price = 21000
 
When No_of_days = 1 and No_of_Par is 5 but <= 10 the value of the price = 10,000 and if No_of_days = 2 and No_of_Par is 5 but <= 10 , Price = 18000
 
Do you guys think that this is possible in acrobat form.... I so please kindly help me out on it.
 
Looking forward to an answer soon. Many Thanks
 
Kindest Regards
 
Vishnu

Kelly McCathran
Registered: Feb 9 2010
Posts: 38
vishnu,

Yes, this is entirely possible, with JavaScript. You can find Adobe Scripting Resources here:
http://www.adobe.com/devnet/acrobat/javascript.html

Also check out Thom Parker's article on performing Acrobat Form Calculations:
http://acrobatusers.com/tutorials/2006/form_calculations

Kelly McCathran
Adobe Certified Instructor
Adobe User Group Manager (http://creativesuitelovers.com)
Certified Technical Trainer+