Apply the validate form behavior – Adobe Dreamweaver CC 2014 v.13 User Manual
Page 723

Apply the Validate Form behavior
The Validate Form behavior checks the contents of specified text fields to ensure that the user has entered the correct type of data. Attach this
behavior 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 behavior to a form prevents the
submission of forms with invalid data.
1. Select Insert > Form or click the Form button in the Insert panel to insert a form.
2. Select Insert > Form > Text Field or click the Text Field button in the Insert panel to insert a text field.
Repeat this step to insert additional text fields.
3. Choose a validation method:
To validate individual fields as the user fills out the form, select a text field and select Window > Behaviors.
To validate multiple fields when the user submits the form, click the