I am completely new to creating forms in Acrobat and to JavaScript. In my form I have two radio buttons, a field with a variable and a field to display the answer. I want to create a script that will calculate the following:
"If radio button 1 is selected, then multiply the value in the variable field times 120 and display the answer in the answer field. If radio button 2 is selected, then multiply the value in the variable field times 60 and display the answer in the answer field. If neither radio button is selected, then display zero in the answer field."
I have read a few articles on conditional statements and have written some code but am not quite there.
Thanks in advance for your ideas.
I think that if you do that you don't need a script. You just set up the answer field's value as the product of the radio button and the variable field.
If that doesn't work, come back here and I'll give you the code to do it.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com