How to specify validation for a field on a form in SharePoint Designer 2007
To specify validation for a field on a form, follow these steps:
- Open your website.
- In Design�view, click to add a cursor into the page.
- In the Toolbox task pane, right-click Input (Text) under Form Controls, and then click Insert.
- Right-click the text box, and then click Form Field Properties.
- In the Text Box Properties dialog box, click Validate.
- In the Text Box Validation�dialog box, select the kinds of validation that you want. To require the user to enter data for the field, select the�Required check box under Data length.
- Click OK to close the Text Box Validation dialog box.
- Click OK to close the Text Box Properties dialog box.
How to specify a validation error page for a form in SharePoint Designer 2007
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:
- Open your website.
- Open the webpage that contains your form.
- Right-click the form, and then click Form Properties.
- In the Form Properties dialog box, click Options.
- Click the Confirmation Page tab.
- 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, SharePoint Designer 2007 displays a default error page. - Click OK to close the Saving Results dialog box.
- Click OK to close the Form Properties dialog box.
How to specify validation for a field on a form in FrontPage 2003
To specify validation for a field on a form, follow these steps:
- Open your website.
- On the File menu, click New.
- On the New task pane, click Blank page.
- On the Insert menu, point to Form, and then click Textbox.
- Right-click the text box, and then click Form Field Properties.
- In the Text Box Properties dialog box, click Validate.
- In the Text Box Validation�dialog box, select the kinds of validation that you want. To require the user to enter data for the field, select the�Required check box under Data length.
- Click OK to close the Text Box Validation dialog box.
- Click OK to close the Text Box Properties dialog box.
How to specify a validation error page for a form in FrontPage 2003
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:
- Open your website.
- Open the webpage that contains your form.
- Right-click the form, and then click Form Properties.
- In the Form Properties dialog box, click Options.
- Click the Confirmation Page tab.
- 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. - Click OK to close the Saving Results dialog box.
- Click OK to close the Form Properties dialog box.