O'Reilly logo

Introducing Microsoft® Office InfoPath™ 2003 by Roger Jennings

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required