Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Radio Button Selection Script

Avatar

Level 2

I am building a form that has 3 radio buttons. I want to crate some sort of if statement that says

If radiobutton1 = selected, then radiobutton2 = false, radiobutton3 = false

If radiobutton2 = selected, then radiobutton1 = false, radiobutton3 = false

if radiobutton3 = selected, then radiobutton1 = false, radiobutton2 = fals

End if

I am having a hard time figuring out how this Adobe's script works. Please help!

Thanks,

HS

3 Replies

Avatar

Level 6

Hmmm, radio buttons are mutually exclusive.  You can only pick one.  What are you trying to do with the buttons?

Avatar

Level 2

That's right, I only want to pick one. But when I test it out, I can select all of the radio buttons. I am thinking there is some kind of code I can use to force the form to pick only one out of the three at a time.

Avatar

Level 6

Check the hierarchy pane.  The three buttons should appear grouped under a RadioButtonList.

No need for scripting.