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

Choose JavaScript script to executed from a combo box.

Flash2009
Registered: Sep 7 2009
Posts: 11

Hello,

I'm having the following little problem, and i'm hoping that someone here can help me solve it.

I created an combo box in Acrobat professional 8.1.

The combo box gives the user 4 different choices to choose from, and does not
allow any other user input in the combo box.

The export values of the 4 choices are "Item01", Item02", "Item03" and "Item04".

What i would like to have is a JavaScript that executes the JavaScript "JS_Item01",
when the choice with export value "Item01" is chosen.

When the choice with export value "Item02" is chosen, a JavaScript named "JS_Item02"
should be executed.

The same procedure has to apply for the export values "Item03" and "Item04".

Is there an easy way to do this. ?

Thanks,

try67
Expert
Registered: Oct 30 2008
Posts: 2398
In a custom calculation script you can check what's the event.value is and based on that execute whatever you want.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com