Mega Code Archive

 
Categories / Flex / Data Model
 

PhoneNumberValidator allowedFormatChars and error messages

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">              <mx:PhoneNumberValidator id="phoneV"          source="{phoneTxt}"          property="text"          required="true"          allowedFormatChars="+-"         invalidCharError="Insert valid chars"          requiredFieldError="This input is required"          wrongLengthError="The number is too short or too long"  />                            <mx:Form id="myForm">                  <mx:FormItem label="Insert Phone Number" required="true">             <mx:TextInput id="phoneTxt" />         </mx:FormItem>              </mx:Form>      </mx:Application>