Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

One radio button sets radio button in another group

Avatar

Level 7

Hello,

I have a set of 3 radio buttons. When the user selects one of the radio buttons (value = 1), then a specific radio button is selected in the second group (value = 30). Here's the script I'm using:

 

if (Emp_Type.selectedValue == 1) {

wkly_Hours.selectedValue = 30;

}

else {

wkly_Hours.selectedValue = 0;

}

Thanks,

MDawn

2 Replies

Avatar

Level 10

Hi,

If each of the radio button exclusion groups have Specified values in the Object > Binding, then you can just use .rawValue instead of selectedValue.

Niall

Avatar

Level 7

I tried rawValue and it didn’t work either. The binding is set. If the script is working, should the radio button be filled in?

Margaret Dawn