successMessage Element

Microsoft Office InfoPath

successMessage Element

Specifies the text to be used to notify the user that the submission was successful.

Type

      xsd:string
    

Remarks

The successMessage element is an optional element of the submit element.

The successMessage element does not contain any attributes or child elements.

The successMessage element is ignored if the showStatusDialog attribute of the submit element is set to "no".

Example

The following is an example of the successMessage element:

    <xsf:submit
   caption="Su&amp;bmit"
   disableMenuItem="no"
   onAfterSubmit="KeepOpen"
   showStatusDialog="yes"
   showSignatureReminder="yes">
   <xsf:useScriptHandler/>
   <xsf:successMessage>Submit was successful.</xsf:successMessage>
   <xsf:errorMessage>Submit was not successful.</xsf:errorMessage>
</xsf:submit>