XDocument.OnSubmitRequest Event
InfoPath Developer Reference |
Occurs when the submit operation is invoked either from the Microsoft Office InfoPath 2007 user interface or by using the Submit method of the XDocument object in the InfoPath object model.
Version Information
Version Added: InfoPath 2003
Syntax
expression.OnSubmitRequest(pEvent)
expression An expression that returns a XDocument object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
pEvent | Required | DocReturnEvent | An event object that is used during a Microsoft Office InfoPath 2007 load or submission event. |
Return Value
nothing
Remarks
This event handler allows users to cancel an operation.
If the ReturnStatus property of the DocReturnEvent object is set to False, InfoPath cancels the submit operation. If an error occurs in the scripting code for the OnSubmitRequest event handler, InfoPath ignores it and relies on the ReturnStatus property of the DocReturnEvent object. If the ReturnStatus property is not explicitly set, the default value of False is used.
Example
In the following example, the OnSubmitRequest event handler is used to create an XMLHTTP object for transporting the form's underlying XML document:
JScript |
---|
|
See Also