Working with Data Source Field Events
Changing data source field values or adding and deleting repeating form sections triggers the following three events:
OnBeforeChange Fires after an instruction to change a field value and prior to saving a new value to a field. If the event handler returns a false value to the ReturnStatus property of the DataDOMEvent argument, InfoPath cancels the field value change. Changing an XDocument node value triggers an OnBeforeChange event for deletion of the original value and insertion of the new value.
OnValidate Fires after OnBeforeChange and before OnAfterChange, and doesn’t recognize return values. The DOM is read-only until execution exits your event handler, so this event is useful primarily for manipulating ...
Get Introducing Microsoft® Office InfoPath™ 2003 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.