About the Data Validation developer sample form

Microsoft Office InfoPath

Show All Show All

About the Data Validation developer sample form

The Data Validation developer sample form demonstrates the variety of ways in which data can be validated in Microsoft Office InfoPath 2003. This sample form is divided into three sections, each demonstrating one of the three methods of data validation: schema-based validation, custom validation, and script-based validation.

To test the features of the sample form, simply choose any field and enter data that does not comply with the validation constraint that is associated with it. The validation constraints can be viewed by resting the mouse pointer over the question mark icon next to each field. When you move the cursor out of the field, you receive one of two possible error indications: an inline alert or a dialog box alert.

Note  To see all of the files that make up the Data Validation developer sample form, open the form and click Extract Form Files on the File menu while in design mode. This extracts all of the form files from the form template file and saves them to a specified folder on your hard disk.

To learn how each of the data validation methods is implemented in the Data Validation developer sample form, see the following topics:

Schema-based validation in the Data Validation developer sample form

Custom validation in the Data Validation developer sample form

Script-based validation in the Data Validation developer sample form