Microsoft Knowledge Base Email Alertz

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

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 891816 - Last Review: September 13, 2011 - Revision: 4.0

How to specify validation for a field on a form and how to specify a validation error page for a form in SharePoint Designer 2007 and in FrontPage 2003

On This Page

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 SharePoint Designer 2007 and in Microsoft Office FrontPage 2003.

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

MORE INFORMATION

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:
  1. Open your website.
  2. In Design view, click to add a cursor into the page.
  3. In the Toolbox task pane, right-click Input (Text) under Form Controls, and then click Insert.
  4. Right-click the text box, and then click Form Field Properties.
  5. In the Text Box Properties dialog box, click Validate.
  6. 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.
  7. Click OK to close the Text Box Validation dialog box.
  8. 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:
  1. Open your website.
  2. Open the webpage that contains your form.
  3. Right-click the form, and then click Form Properties.
  4. In the Form Properties dialog box, click Options.
  5. Click the Confirmation Page tab.
  6. 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.
  7. Click OK to close the Saving Results dialog box.
  8. 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:
  1. Open your website.
  2. On the File menu, click New.
  3. On the New task pane, click Blank page.
  4. On the Insert menu, point to Form, and then click Textbox.
  5. Right-click the text box, and then click Form Field Properties.
  6. In the Text Box Properties dialog box, click Validate.
  7. 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.
  8. Click OK to close the Text Box Validation dialog box.
  9. 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:
  1. Open your website.
  2. Open the webpage that contains your form.
  3. Right-click the form, and then click Form Properties.
  4. In the Form Properties dialog box, click Options.
  5. Click the Confirmation Page tab.
  6. 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.
  7. Click OK to close the Saving Results dialog box.
  8. Click OK to close the Form Properties dialog box.

APPLIES TO
  • Microsoft Office SharePoint Designer 2007
  • Microsoft Office FrontPage 2003
Keywords: 
kbforms kbhowto KB891816
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate