InfoPath 2003 defines two classes of events ”form events and validation events.
The InfoPath 2003 form events are OnLoad , OnClick , OnSwitchView , OnSubmitRequest , OnVersionUpgrade , and OnAfterImport .
The OnLoad event occurs after a form has been loaded, but before the default view has been displayed.
The OnClick event is available only on button form controls and provides a way to script in response to a user -initiated click on a button form control.
The OnSwitchView event occurs when a user switches between the views of a form.
The OnSubmitRequest event occurs when a user chooses to submit a form or programmatically using XDocument.Submit() .
The OnVersionUpgrade event occurs when there is a mismatch between the version number of a form and the corresponding form template.
The OnAfterImport event occurs when a number of forms have been merged.
The InfoPath 2003 validation events are OnBeforeChange , OnValidate , and OnAfterChange .
The OnBeforeChange event occurs after a value has been entered in a form control and the user has moved away from the form control, but before the new value is validated .
The OnValidate event occurs after the OnBeforeChange event. After the OnValidate event, any change is made to the appropriate XML DOM node.
The OnAfterChange event occurs after a change has been made to the XML DOM node corresponding to a form control.