Specifies that the form is to be submitted to the specified Uniform Resource Locator (URL) using the specified HTTP method.
xsd:complexType
Name | Description |
---|---|
href | (Required attribute) Specifies the URL to which the form should be submitted. |
method | (Required attribute) Specifies the HTTP method to use for the submit operation. |
The useHttpHandler element is an optional element of the submit element.
The following is an example of the useHttpHandler element:
<xsf:submit
caption="Su&bmit"
disableMenuItem="no"
onAfterSubmit="KeepOpen"
showStatusDialog="yes"
showSignatureReminder="yes">
<xsf:useHttpHandler>
href="http://MyServer/InfoPathScripts/MyScript.asp"
method="POST"
</xsf:useHttpHandler>
<xsf:successMessage>Submit was successful.</xsf:successMessage>
<xsf:errorMessage>Submit was not successful.</xsf:errorMessage>
</xsf:submit>