How to specify validation for a field on a form and how to specify a validation error page for a form in FrontPage 2003 (891816)



The information in this article applies to:

  • Microsoft Office FrontPage 2003

INTRODUCTION

This article describes how to specify validation for a field on a form and how to specify a validation error page for a form in Microsoft Office FrontPage 2003.

Note The examples in this article describe how to validate a Textbox field. However, these steps can be used for other types of fields on a form.

MORE INFORMATION

How to specify validation for a field on a form

To specify validation for a field on a form, follow these steps:
  1. Start FrontPage 2003.
  2. Open your Web site.
  3. On the File menu, click New.
  4. On the New task pane, click Blank page.
  5. On the Insert menu, point to Form, and then click Textbox.
  6. Right-click the text box, and then click Form Field Properties.
  7. In the Text Box Properties dialog box, click Validate.
  8. In the Text Box Validation dialog box, select the types of validation that you want. To require that the user enter data for the field, click to select the Required check box under Data length.
  9. Click OK to close the Text Box Validation dialog box.
  10. Click OK to close the Text Box Properties dialog box.

How to specify a validation error page for a form

Validation is performed by JavaScript on the client computer. If JavaScript is turned off in the Web browser, the URL that is specified in the following steps is displayed.

To specify a validation error page for a form, follow these steps:
  1. Start FrontPage 2003.
  2. Open your Web site.
  3. Open the Web page that contains your form.
  4. Right-click the form, and then click Form Properties.
  5. In the Form Properties dialog box, click Options.
  6. Click the Confirmation Page tab.
  7. In the URL of validation failure page (optional) text box, type the URL to the validation error page that you want to be displayed.

    Note This step assumes that you have already created the validation error page that you want to be displayed. If you do not specify a URL in this step, FrontPage 2003 displays a default error page.
  8. Click OK to close the Saving Results dialog box.
  9. Click OK to close the Form Properties dialog box.

Modification Type:MajorLast Reviewed:1/11/2005
Keywords:kbForms kbhowto KB891816 kbAudEndUser