# caption Attribute (submit Element)

Defines the name of the submit button and corresponding menu item that will appear on the File menu when a user is filling out a form.

## Type

    xsd:string

## Remarks

The caption attribute is an optional attribute of the submit element.

The default value is "Submit", but any text string can be used. If the caption attribute is missing or is set to an empty string, the default value is used. The "&amp;" characters can be used to create a keyboard shortcut for the submit menu item.

## Example

The following is an example of the caption attribute as it is used in the submit 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