1 Reply Latest reply on Jan 11, 2007 8:08 AM by dimival

    How do I validate a field thats not required?

      Hi,
      I have a form where not all the fileds are required so I only want to validate the fields if they contain data. Say for example I have a number validator

      <mx:NumberValidator id="polNumValid" source="{bTxtInptPolNo}" property="text"
      trigger="{bTxtInptPolNo}" triggerEvent="change"/>

      This is activated when a user enters a character in the text box, and the validation error disappears if they change the value to numeric.
      This field however, is not required and if the user deletes the value they entered I am still getting a 'field required' error.

      If I set the required property to False, none of the validation works...... Surely there is an easy way to do this????
      Thanks....