# Help with radio button selection error

**URL:** <https://forum.kirupa.com/t/help-with-radio-button-selection-error/323451>\
**Category:** flash\
**Created:** [July 1, 2011, 3:49pm UTC](https://forum.kirupa.com/t/help-with-radio-button-selection-error/323451 "2011-07-01T15:49:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [July 1, 2011, 3:49pm UTC](https://forum.kirupa.com/t/help-with-radio-button-selection-error/323451/1 "2011-07-01T15:49:31Z")

</div>

OK. So I have a group of radio buttons on the stage. If the user chooses one of the buttons and hits ‘Submit’ all is fine. If they fail to make a selection I want to show them an error. Using the code below works fine if this happens initially, but if the user makes a selection and hits ‘Submit’ the radGroup.selection is now true. So now if they do not make a selection the next time, when they hit ‘Submit’ it does not catch the error.

So, is there a way to clear this radGroup.selection? Can I just force it to false?

```auto

if (! radGroup.selection)

```
