Choose Window, Actions to display the Actions palette.
Click the F icon that represents the form tag in your document window to select the form.
In the Actions palette, scroll down in the Events list and select Form Submit, as shown in Figure 39.26.
Figure 39.26. The Form Submit action enables you to create an action that is triggered when the Submit button is clicked.
Click the Create New Action button in the Actions palette to create a new action in the Actions column, as shown in Figure 39.27.
Figure 39.27. All of the available actions are found under the Action button, which becomes available after you select an event from the Actions palette.
From the Action pop-up menu, select Getters, Field Validator, as shown in Figure 39.28.
Figure 39.28. The Getters options pertain to forms specifically.
In the Actions palette, select from the pop-up menus to specify your field validation, as shown in Figure 39.29.
Figure 39.29. Add a Field Validator action for each field you want to validate.
Click the Create New Action button to add additional fields you want to validate and then test your form in a browser. A dialog box appears when the form validation is not met.