Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Selecting A Radio Button Will Select A Different One

Avatar

Level 3

Hello,


I am working on a form where the users answer a series of questions.  With one of the questions, if No is selected, they are to select N/A on the next question.  I have tried all of the coding that I know to make this do this automatically, but I cannot figure out something that will work.  Does any one have any suggestions?


Thank you!

Justin

1 Accepted Solution

Avatar

Correct answer by
Level 8

On change event of your radio button group you can put:

if (this.rawValue=="No")

     DropDown2.rawValue="N/A";

You have to make sure though that the values in quotes are the values associated with your radio buttons. To verify the values associated with the text, click on your radio button group. Select the Binding tab under the object palette. If Specify Item Values is checked, then you'll see what you need to put in quotes under the Value column.

Kyle

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

On change event of your radio button group you can put:

if (this.rawValue=="No")

     DropDown2.rawValue="N/A";

You have to make sure though that the values in quotes are the values associated with your radio buttons. To verify the values associated with the text, click on your radio button group. Select the Binding tab under the object palette. If Specify Item Values is checked, then you'll see what you need to put in quotes under the Value column.

Kyle

Avatar

Level 3

Kyle,


That did it.  Thanks again!

Justin