Hello everyone, I have a two radio buttons on page one, each representing a distinct choice. On the next page I have a drop down list which populates a text field of choices selected from the drop down list (no problems there). What I need to do is to limit the choices of the drop down list selections based upon which radio button is selected in the previous page. So I would gather that I am in need of a java script that can enable this function, can anyone help?
The exact code will depend if you are using Acrobat Forms or LveCycle Designer. In Acrobat Forms you can use the "setItems(oArray)" method of the field object to set all the items in the combo box or list box. For LiveCycle Designer, you first must clear the drop down box or list box with the "DropDownList1.clearItems()" method and then use the "DropDownList1.addItem(.....)" to set each individual item to the drop down list or list box.
I am using Adobe LiveCycle Designer. If I understand you correctly are you saying that in the radio button, under "change" I should add in the following java script?
The script works good, thank you. However I neglected to mention that the drop down list, along with a text field are embedded into a subform. Hence the script does not work while the drop down list is in the subform. Can you please provide me with a modified script to give me the same effect as your previous post?