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

Changing the value of a field based on a dropdown selection

Dripto
Registered: Jun 20 2007
Posts: 47
Answered

Hi,

I need to change the value of a decimal field called field1 based on the selection of a dropdown field field2.

So to be specific the value in field1 will be multiplied by a factor of 2 if "yes" is selected in field2 and by a factor of 1 if "no" is selected in field2.

Thanks

My Product Information:
LiveCycle Designer, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi Dripto,

Here is an article from the Learning Center on just that subject-
http://www.acrobatusers.com/tutorials/2006/change_another_field

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
Dripto
Registered: Jun 20 2007
Posts: 47
Hi Dimitri,

Sorry but I am not much of an Adobe expert so I couldn't translate that Acrobat example to the LiveCycle designer domain. Is there another link you could direct me to?

Thanks
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi Dripto,

Crud- I forgot to look at the Product Info again, sorry.

Here is an article on programming list fields with LCD examples-
http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle

You may want to spend some time searching the Learning Center here for other JavaScript topics of you are working with PDF forms- there are over 70 tutorials and lots of them have downloadable files with code to examine. Just filter for JavaScript to get the complete list.

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
Dripto
Registered: Jun 20 2007
Posts: 47
Thanks Dimitri that was very helpful.