0 Replies Latest reply on Jul 25, 2007 12:42 PM by webvalue

    Property value of a validator for a radio button group

    webvalue Level 1

      I have problem in giving the property value of a validator for a radio button group. In the third line below, I tried "text, "String", "Object", "RadioButton", or "RadioButtonGroup" etc., but none of them work.

      var booleanValidator:Validator = new Validator;
      booleanValidator.source = Licensed;
      booleanValidator.property = "";
      booleanValidator.required = true;
      booleanValidator.requiredFieldError = "Licensed field is required.";

      validatorResult = booleanValidator.validate();

      below is the radio button group code:

      <mx:FormItem label="Licensed?" required="true" direction="horizontal">
      <mx:RadioButtonGroup id="Licensed" selectedValue="{memData.Licensed}"/>
      <mx:RadioButton groupName="Licensed" value="y" label="Yes"/>
      <mx:RadioButton groupName="Licensed" value="n" label="No"/>
      </mx:FormItem> Text