apache-flexflex3radio-button

How to validate the radio button group? in flex


How to validate the radio button is selected or not in flex 3?

if my question is wrong, please suggest me any thing regarding the validation of radio group.


Solution

  • Simply use a StringValidator:

            <mx:StringValidator id="myRadioButtonGroupValidator" 
            source="{myRadioButtonGroup}" 
            property="selectedValue" 
            required="true"/>