Adobe 38028779 User Guide - Page 470
Validate Form, Named Fields list.
UPC - 718659742201
View all Adobe 38028779 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 470 highlights
Validate Form 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 fields contains invalid data. To use the Validate Form action: 1 Choose Insert > Form or click the Form button on the Objects panel to insert a form. 2 Choose Insert > Form Objects > Text Field or click the Text Field button on the Objects panel to insert a text field. Repeat this step to insert additional text fields. 3 Do one of the following: • To validate individual fields as the user fills out the form, select a text field and choose Window > Behaviors. • To validate multiple fields when the user submits the form, click the tag in the tag selector in the bottom left corner of the Document window and choose Window > Behaviors. 4 Choose Validate Form from the Actions pop-up menu. 5 Do one of the following: • If you are validating individual fields, select the same field that you have selected in the Document window from the Named Fields list. • If you are validating multiple fields, select a text field from the Named Fields list. 6 Select the Required option if the field must contain some data. 7 Choose from one of the following Accept options: • 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. 470 Chapter 18