2 Replies Latest reply on Dec 31, 2009 11:14 AM by Jerry62712

    How do I get the phone validator to work

    Jerry62712 Level 1

      More properly, how do I get it to work correctly?

       

      According to the doc (see here: http://livedocs.adobe.com/flex/3/langref/mx/validators/PhoneNumberValidator.html#includeEx amplesSummary) there is a property of the phone validator that will allow you to give the minimum number of digits (their example):

       

        <mx:PhoneNumberValidator 
          allowedFormatChars="()- .+"
          invalidCharError="Your telephone number contains invalid characters."
          minDigits="10"
          wrongLengthError="Your telephone number must contain at least 10 digits."/>

       

      Try adding "minDigits" and you get an error:

      Cannot resolve attribute 'minDigits' for component type mx.validators.PhoneNumberValidator

       

      Huh?