Skip to content

Miscellaneous

submitTag()

submitTag() — returns any

Builds and returns a string containing a submit button form control. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes.

NameTypeRequiredDefaultDescription
valuestringyesSave changesMessage to display in the button form control.
imagestringyes—File name of the image file to use in the button form control.
disableanyyes—Whether or not to disable the button upon clicking. (prevents double-clicking.)
prependstringyes—See documentation for textField
appendstringyes—See documentation for textField
<cfoutput>
    #startFormTag(action="something")#
        <!--- form controls go here --->
        #submitTag()#
    #endFormTag()#
</cfoutput>