Script-Based Validation

If you have written any HTML forms, you likely have added client-side script to provide more responsive interaction with users than server-side scripting can provide, because the trip to the server to conduct validation is avoided when client-side scripting is used. Often client-side validation scripts in HTML forms are called only when the user attempts to submit the form data. In InfoPath 2003, the data source values, which are bound to form controls, can be validated in response to InfoPath validation events.

▸ To learn more about InfoPath validation events, seeValidation Events,” p. 346 (Chapter 19).

In this simple example, we will use script to specify that the last name must be the string "Smith". Figure 10.7 ...

Get Microsoft® Office InfoPath™ 2003 Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.