The Validate Form action checks the contents of specified text fields to ensure that the user has entered the correct type of data. Attach this action to individual text fields with the
onBlur event to validate the fields as the user is filling out the form, or attach it to the form with the
onSubmit event to evaluate several text fields at once when the user clicks the Submit button. Attaching this action to a form prevents the form from being submitted to the server if any of the specified text fields contains invalid data.
Repeat this step to insert additional text fields.
<form>tag in the tag selector in the bottom left corner of the Document window and select Window > Behaviors.
Use Anything if the field is required but need not contain any particular kind of data. (If the Required option is not selected, the Anything option is meaningless--that is, it is the same as if the Validate Form action were not attached to the field.)
Use E-mail address to check that the field contains an @ symbol.
Use Number to check that the field contains only numerals.
Use Number From to check that the field contains a number in a specific range.
If you are validating multiple fields when the user submits the form, the
onSubmit event automatically appears in the Events pop-up menu.
If it isnt, select
onChange from the pop-up menu. Both of these events trigger the Validate Form action when the user moves away from the field. The difference between them is that
onBlur occurs whether or not the user has typed in the field, and
onChange occurs only if the user changed the contents of the field. The
onBlur event is preferred when you have specified that the field is required.