Schema-based validation in the Data Validation developer sample form

Microsoft Office InfoPath

Show All Show All

Schema-based validation in the Data Validation developer sample form

Schema-based data validation in Microsoft Office InfoPath 2003 is determined by the XML Schema associated with a form. Schema-based validation occurs by default whenever a user fills out a form. After the user enters data into a field and moves out of that field, the data is immediately checked against the XML Schema.

In the Data Validation developer sample form, schema-based validation is used to verify that a number falls within a certain range, verify the type of data in a field, verify that a field contains data, and limit the number of rows that can be added to a table.

Note   InfoPath supports the creation of only data type and required field constraints in XML Schemas in design mode. However, the use of other kinds of constraints in the schema is supported. To create other kinds of schema-based validation, you must edit your XML Schema files using Microsoft Notepad or some other text editor.

ShowRange checking and data-type validation in the schema

ShowRequired fields in the schema

ShowStructural validation in the schema