Export (0) Print
Expand All

submit Element

Office 2007

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

ElementDescription
solutionDefinitionRoot 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

ElementTypeDescription
submitActionxdTitleSpecifies the name of the data connection (adapter) for submitting the form.
successMessagexsd:stringSpecifies the custom message to display when submitting a form succeeds.
errorMessagexsd:stringSpecifies the custom message to display when submitting a form fails.

Attributes

AttributeTypeRequiredDescriptionPossible Values
captionxsd:stringOptionalSpecifies 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
onAfterSubmitxsd:enumerationOptionalSpecifies 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
showStatusDialogxdYesNoOptionalSpecifies 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
showSignatureReminderxdYesNoOptionalSpecifies 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
disableMenuItemxdYesNoOptionalSpecifies 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.



Community Additions

ADD
Show:
© 2014 Microsoft