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

radio button & checkbox calculation

Sandy123
Registered: Mar 13 2008
Posts: 4

Hi All,

I am new using adobe acrobat pdf form and also using javascript.
I have a form that requires to get the value from the radio button with 5 different values and if I click at the radio the value will be displayed at the textbox. Any help will be appreciated.

thanks in advance,

sandy

My Product Information:
Acrobat Standard 8.0, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Do you mean that you have 5 radio buttons in a group?

The easiest way to use a radio button to place a value in a text field is to place a script, like the one below, in the calculation script for the text field.

event.value = this.getField("MyRadioButtons").value;

where the value exported from the Radio button group is the "export" value set in the "options" tab of properties dialog for each of the individual radio buttons.

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