The EmailValidator in Flex verifies if a string is an formatted as an email address. The only parameters you can change to the EmailValidator are the error messages that the user receives when the validation found a problem.
Here is the syntax of the EmailValidator:
<mx:emailvalidator invalidCharError="Invalid characters in your email address."
invalidDomainError= "The domain in your email address is incorrectly formatted."
invalidIPDomainError="The IP domain in your email address is incorrectly formatted."
invalidPeriodsInDomainError="The domain in your email address has consecutive periods."
missingAtSignError="Missing an at character in your email address."
missingPeriodInDomainError="The domain in your email address is missing a period."
missingUsernameError="The username in your email address is missing."
tooManyAtSignsError="Too many at characters in your email address."></mx:emailvalidator> |
Here is an example that checks if a string entered by the user is an email or not:
Read the rest of this entry »