Setting Email and URL Validation

OVERVIEW:
You would use this feature to prevent your viewers from entering an invalid syntax email or URL. This message will be displayed in a textfield that is on the stage, when the user tries to submit the form. You can create more advanced Email and URL validation messages using the onErrorEmail and onErrorURL (AS2) or ON_ERROR_EMAIL and ON_ERROR_URL (AS3) events. These events are explained in the Advanced Features section.

Create a textfield for the display message that will read, for example, "Invalid Email address". You can use the same textfield used for creating missing required fields, (see SETTING REQUIRED FIELDS).


EMAIL VALIDATION:

Property Name
Description
Example

Email Validation Field

If you require email validation on a field, enter the instance name of the email field here.
Email
Invalid Email Textfield
The instance name of the dynamic textfield in which the invalid email message should appear.
requiredTxt
Invalid Email Message
The message that should appear when the user enters an invalid email address.
Invalid Email address



URL VALIDATION:

Property Name
Description
Example
URL Validation Field
If you require URL validation on a field, enter the instance name of the URL field here.
Website
Invalid URL Textfield
The instance name of the dynamic textfield in which the invalid URL message should appear.
requiredTxt
Invalid URL Message
The message that should appear when the user enters an invalid URL.
Invalid URL