Using the EmailValidator class : EmailValidator « Data Model « Flex






Using the EmailValidator class

Using the EmailValidator class
     
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Form id="contactForm">
    <mx:FormItem id="homePhoneItem" label="Home Phone">
      <mx:TextInput id="homePhoneInput" />
    </mx:FormItem>
    <mx:FormItem id="cellPhoneItem" label="Cell Phone">
      <mx:TextInput id="cellPhoneInput" />
    </mx:FormItem>
    <mx:FormItem id="emailItem" label="Email">
      <mx:TextInput id="emailInput" />
    </mx:FormItem>
  </mx:Form>
  <mx:PhoneNumberValidator id="pnVHome" source="{homePhoneInput}" property="text" />
  <mx:PhoneNumberValidator id="pnVCell" source="{cellPhoneInput}" property="text" />
  <mx:EmailValidator id="emV" source="{emailInput}" property="text" />
</mx:Application>

   
    
    
    
    
  








Related examples in the same category

1.Using ActionScript to validate EmailUsing ActionScript to validate Email
2.Email address validationEmail address validation
3.Using a submit button to validate form fieldsUsing a submit button to validate form fields
4.Use EmailValidator to validate email cell editorUse EmailValidator to validate email cell editor
5.Data source for EmailValidatorData source for EmailValidator
6.Using EmailValidatorUsing EmailValidator
7.Validate Email With ActionScriptValidate Email With ActionScript
8.Use new line character to error messageUse new line character to error message