Email address validation : EmailValidator « Data Model « Flex






Email address validation

Email address validation
    
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="horizontal">
    <mx:EmailValidator source="{email}" 
                       property="text"
                       invalidCharError="invalid Email"
                       trigger="{submitButton}" 
                       triggerEvent="click" />
    <mx:Text text="Email:" />
    <mx:TextInput id="email" />
    <mx:Button label="Submit" id="submitButton" />
</mx:Application>

   
    
    
    
  








Related examples in the same category

1.Using ActionScript to validate EmailUsing ActionScript to validate Email
2.Using a submit button to validate form fieldsUsing a submit button to validate form fields
3.Use EmailValidator to validate email cell editorUse EmailValidator to validate email cell editor
4.Data source for EmailValidatorData source for EmailValidator
5.Using the EmailValidator classUsing the EmailValidator class
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