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.
SOLVED

Using switch and case with Radio Buttons

Avatar

Level 7

Can I use the switch case with radio buttons ?

What will be the parameter to determine the choice just like xfa.event.newText is used for dropdown list.

Aditya

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Aditya,

Select the exclusion group in the hierarchy (you don't have to script each radio button) and select the click event. The switch statement would use the this.rawValue.

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi Aditya,

Select the exclusion group in the hierarchy (you don't have to script each radio button) and select the click event. The switch statement would use the this.rawValue.

Hope that helps,

Niall

Avatar

Level 7

Niall,

Thank you for the sample attachment.... It will work perfectly for me.

Aditya