OK. So I am having a problem with radio buttons. Here’s what I am doing:
- Add a number of radio buttons to stage
- Add them to a group (I reuse the same group over and over)
- User chooses a button and clicks a “Submit” button
- Check that a button was selected
if (! radGroup.selection)
- If button not selected --> handle error
- If button selected, good, do stuff
- Remove all of the buttons
- Add the next set of buttons for the next question
The “if (! radGroup.selection)” works fine on the first question. The problem is with all of the next questions. I assume that since I am using the same group, the “radGroup.selection” will always be true after the user makes a selection the first time.
So, is it feasible to nullify the group each time the user answers a question? If so, does anyone know how to do this?