# 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>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp