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

Form Design with subforms

MartinPerry
Registered: Oct 17 2007
Posts: 8

I need to have 2 radio buttons 1)Director, 2)Consultants. Depending on what the end user selects. I need to have different dropdown list with different data contained within. Both dropdowns cannot appear at the same time because of the data. Then my form will calculate based on the selections of the end user. To make things worse, the drop downs must appear in exactly the place on the form. I am beginner in form design with Adobe Designer 7.0. I am not sure what direction I should go or even how to write the script. Any ideas. Thanks, Martin

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are two approaches to a solution. As you suggest, you could have two dropdown lists, when control the "presense" attribute of each from the Radio buttons. Simply use the "MouseUp" event on the radio buttons to set this value. something like:

MydropList1.presense = "visible";
MydropList2.presense = "invisible";

The other solution is cleaner from a form design perspective, but requires more scripting. Rather than having two dropdowns, use one list and re-populate it with different data depending on the radio button setting. Take a look at this article. It explains exactly how to do this.

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


Here's an article that explains how radio buttons work.

[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