Skip to main content
GeorgeCFray
Known Participant
September 27, 2018
Answered

Different List Results based on Radio Button

  • September 27, 2018
  • 1 reply
  • 448 views

Hi,

I am attempting to change the available options within a dropdown list based on the results of a radio button.

Essentially I want the radio buttons to filter my options.

Not too familiar with the way adobe coding works but a push in the right direction would be fantastic

Thanks in advance,

George

This topic has been closed for replies.
Correct answer try67

I would do it using a (hidden) text field's custom calculation script. The script itself can look something like this:

var issue = this.getField("Issue").valueAsString;

var optionField = this.getField("Options");

if (issue=="Off") optionField.clearItems();

else if (issue=="Quality") optionField.setItems(["Item 1", "Item 2", "Item 3"]);

else if (issue=="Misalignment") optionField.setItems(["Item 4", "Item 5", "Item 6"]);

etc.

Of course, you'll need to adjust the field names and values to match those in your files for it to work...

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
September 27, 2018

I would do it using a (hidden) text field's custom calculation script. The script itself can look something like this:

var issue = this.getField("Issue").valueAsString;

var optionField = this.getField("Options");

if (issue=="Off") optionField.clearItems();

else if (issue=="Quality") optionField.setItems(["Item 1", "Item 2", "Item 3"]);

else if (issue=="Misalignment") optionField.setItems(["Item 4", "Item 5", "Item 6"]);

etc.

Of course, you'll need to adjust the field names and values to match those in your files for it to work...