Expand my Community achievements bar.

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