Validation Events

InfoPath's validation events are, not surprisingly, intended to be used in the validation of InfoPath form data. There are three validation events: OnBeforeChange, OnValidate, and OnAfterChange, which occur in that order.

▸ Validation of InfoPath form data is described in Chapter 10, “Validating Form Data,” p. 179.

The DataDOMEvent object is passed as an argument to each of the three InfoPath validation events.

▸ To learn more about the methods and properties of the DataDOMEvent object, seeThe DataDOMEvent Object,” p. 314 (Chapter 18).

The OnBeforeChange Event

The OnBeforeChange event is the first of the three validation events to occur when the user makes a change in the values visible in a form control. The OnBeforeChange ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.