Share via


submit Element

Specifies properties for submitting the form.

Usage

  
<submit
	caption="xsd:string"
	onAfterSubmit="xsd:enumeration"
	showStatusDialog="xsf:xdYesNo"
	showSignatureReminder="xsf:xdYesNo"
	disableMenuItem="xsf:xdYesNo"
/>

Element Information

Element type xsd:complexType
Namespace xsf2

Elements and Attributes

Parent Elements

Element Description
solutionDefinition Root element for the elements defined in the xsf2 namespace. Specifies new properties and features that have been added to InfoPath 2007 form templates.

Child Elements

Element Type Description
submitAction xdTitle Specifies the name of the data connection (adapter) for submitting the form.
successMessage xsd:string Specifies the custom message to display when submitting a form succeeds.
errorMessage xsd:string Specifies the custom message to display when submitting a form fails.

Attributes

Attribute Type Required Description Possible Values
caption xsd:string Optional Specifies the name of submit action button.

Note   This element or attribute is optional in the form definition file (.xsf) of a form template deployed as a browser-compatible form to a server running InfoPath Forms Services.
String
onAfterSubmit xsd:enumeration Optional Specifies how the form behaves after it is submitted. Possible values: "close" "keepOpen" "openNew"

Note   This element or attribute is optional in the form definition file (.xsf) of a form template deployed as a browser-compatible form to a server running InfoPath Forms Services.
  • close
  • keepOpen
  • openNew
showStatusDialog xdYesNo Optional Specifies whether the status dialog should be displayed when the form is submitted.

Note   This element or attribute is optional in the form definition file (.xsf) of a form template deployed as a browser-compatible form to a server running InfoPath Forms Services.
  • yes
  • no
showSignatureReminder xdYesNo Optional Specifies whether the user should be reminded to sign the form before it is submitted.

Note   This element or attribute is optional in the form definition file (.xsf) of a form template deployed as a browser-compatible form to a server running InfoPath Forms Services.
  • yes
  • no
disableMenuItem xdYesNo Optional Specifies whether the submit button should be shown on the toolbar when the form is opened in a Web browser.

Note   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will prevent the form template from being deployed to the server as a browser-compatible form.
  • yes
  • no

Definition

  
<xsd:element name="submit">
   <xsd:complexType>
      <xsd:all>
         <xsd:element name="submitAction" minOccurs="0">
            <xsd:complexType>
               <xsd:sequence />
               <xsd:attribute name="adapter" type="xsf:xdTitle" use="required" />
            </xsd:complexType>
         </xsd:element>
         <xsd:element name="successMessage" type="xsd:string" minOccurs="0" />
         <xsd:element name="errorMessage" type="xsd:string" minOccurs="0" />
      </xsd:all>
      <xsd:attribute name="caption" type="xsd:string" use="optional" />
      <xsd:attribute name="onAfterSubmit" use="optional">
         <xsd:simpleType>
            <xsd:restriction base="xsd:NMTOKEN">
               <xsd:enumeration value="close" />
               <xsd:enumeration value="keepOpen" />
               <xsd:enumeration value="openNew" />
            </xsd:restriction>
         </xsd:simpleType>
      </xsd:attribute>
      <xsd:attribute name="showStatusDialog" type="xsf:xdYesNo" use="optional" />
      <xsd:attribute name="showSignatureReminder" type="xsf:xdYesNo" use="optional" />
      <xsd:attribute name="disableMenuItem" type="xsf:xdYesNo" use="optional" />
   </xsd:complexType>
</xsd:element>

Remarks

Note   This element or attribute must be present and valid in the form definition file (.xsf), before InfoPath Forms Services will allow the form template to be deployed to the server as a browser-compatible form.