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

Setting Radio Button Values based on selected Drop down value

webmaster
Registered: Jan 26 2007
Posts: 8

On a form, how do you set the values of the multiple sets of radio buttons as being selected based on the drop down value of a text field? The multiple sets of radio buttons are grouped together eg., WP.1 (with WP.1#0, WP.1#1, WP.1#2). I want to set WP.1#1 as selected if the Smith text is selected in the drop down value. Thanks!

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I'll assume that you are asking about LiveCycle forms, not AcroForms. The concepts for radiow buttons between the two forms technologies are very similar to the discussion below really applies to both.

Radio buttons are like potato chips, you've got to have more than one. Radio button's by themselves do not have a value, only a group of radio buttons has a value. Like it's a single element.

Individual Radio buttons do have an export value. In both LiveCycle forms and AcroForms this export value is text. And in both cases, the value of the Radio Button Group is the export value of the selected radio button.

So there is your answer. Use the value of the drop down list to set the value of the radio button group.

See these Articles:

[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/change_another_field/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/change_another_field/[/url]

[url=http://www.acrobatusers.com/tutorials/2007/js_radio_check_box/]http://www.acrobatusers.com/tutorials/2007/js_radio_check_box/[/url]

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