Skip navigation
Home/Support/

Forums

438 Views 6 Replies Latest reply: Sep 28, 2011 12:24 PM by Bobert Marley RSS
Bobert Marley User 20 posts since
Jun 3, 2009
Currently Being Moderated

Sep 27, 2011 2:14 PM

Flex 4.5 - How to Validate RadioGroup?

I have a form that I am performing validation on. I am using String Validators to validate a TextField and RadioGroup.

 

For some reason, the FormItem for the RadioButtons is not displaying the red error indicator.

 

Does anyone know how to enable this?

 

 

Capture.PNG

  • Amy Blankenship User 295 posts since
    Aug 4, 2009
    Currently Being Moderated
    1. Sep 27, 2011 4:50 PM (in response to Bobert Marley)
    Re: Flex 4.5 - How to Validate RadioGroup?

    What's your code?

  • Amy Blankenship User 295 posts since
    Aug 4, 2009
    Currently Being Moderated
    3. Sep 27, 2011 5:42 PM (in response to Bobert Marley)
    Re: Flex 4.5 - How to Validate RadioGroup?

    Set the Formitem that contains the radio buttons as the listener on the validator that is validating the Radio Button Group.

  • Amy Blankenship User 295 posts since
    Aug 4, 2009
    Currently Being Moderated
    5. Sep 27, 2011 8:50 PM (in response to Bobert Marley)
    Re: Flex 4.5 - How to Validate RadioGroup?

    You could try listening for the validation event and manually setting the error string on the FormItem, but I think that's the long way round of what listener does.  You could also try putting the radio buttons in a SkinnableContainer and setting the error string on that (I think you'll have to make a custom skin to show the error indicator in that case, but I'm not 100% sure.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points