Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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