Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Prevent Question 2 Radio Button Selection Until Question 1 Radio Button Selection is Made

Avatar

Level 9

I have a messagebox script (Javascript) to appear if the user tries to make a radio button selection in question 2 when they did not make a selection in question 1. However, the messagebox is not preventing the selection. the radio button is selected after the messagebox goes away. How do I prevent this? I tried setting the focus on the question 1 set of radio buttons but that did not work.

1 Accepted Solution

Avatar

Correct answer by
Level 7

You could set question 2 to readOnly or protected using 'access' until question 1 has been answered.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 7

You could set question 2 to readOnly or protected using 'access' until question 1 has been answered.