Adobe Dreamweaver CC 2015 User Manual
Page 432

425
Javascript
Last updated 6/3/2015
Use E-mail address
Checks that the field contains an @ symbol.
Use Number
Checks that the field contains only numerals.
Use Number From
Checks that the field contains a number in a specific range.
8
If you have chosen to validate multiple fields, repeat steps 6 and 7 for any additional fields that you want to validate.
9
Click OK.
If you are validating multiple fields when the user submits the form, the onSubmit event automatically appears in
the Events menu.
10
If you are validating individual fields, check that the default event is onBlur or onChange. If not, select one of those
events.
Both events trigger the Validate Form behavior when the user moves away from the field. The difference 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 if the field is required.
More Help topics