Skip to main content
Participant
January 22, 2025
Question

Dropdown List Triggered by Radio Buttons

  • January 22, 2025
  • 1 reply
  • 361 views

i am wondering if it is possible to have specific options on a dropdown list be triggered based on what radio button is selected on a form. for instance, if there are four radio buttons and one of them is selected then a different option will show on the dropdown list. example - if the user of the form selects radio button named "other" than the choice "rebates" will appear on the dropdown list but if they were to choose a button named "refunds" than the dropdown list will show something else. i am new with adobe so feel free to dumb down any solutions for this. 

1 reply

Nesa Nurani
Community Expert
Community Expert
January 23, 2025

Sure, that is possible.

Do you also manually select choices from the dropdown?

Because if not, it may be better to use text field instead.

Are all four radio buttons part of the same group, and what is the name?

Can you describe which buttons should display which word?

yungsoapAuthor
Participant
January 23, 2025

No, there will not be multiple options in the dropdown. I would like it if when one of the radio buttons are selected, specific text shows and cannot be changed. 

all four radio buttons are apart of a group called "Group1". 

if the button "claims" is selected, i would like to "damage claims" to be displayed. if "refund" is selected then "customer refund" will be displayed. "deposit" will show "deposit account" and if possible, i would like to "other" to show an editable text box that the user can enter information into. 

Nesa Nurani
Community Expert
Community Expert
January 23, 2025

You can use text field instead of dropdown, and use this as custom calculation script of text field where you wish to show text:

 

var rb = this.getField("Group1").valueAsString;

if(rb == "claims"){
 event.value = "damage claims";
 event.target.readonly = true;}
else if(rb == "refund"){
 event.value = "customer refund";
 event.target.readonly = true;}
else if(rb == "deposit"){
 event.value = "deposit account";
 event.target.readonly = true;}
else if(rb == "other"){
 event.target.readonly = false;}
else{
  event.value = "";
 event.target.readonly = true;}

 

JavaScript is case-sensitive, so make sure "claims", "deposit", "refund", "other" are correctly written.