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.
imagestringyesFile name of the image file to use in the button form control.
disableanyyesWhether or not to disable the button upon clicking. (prevents double-clicking.)
prependstringyesSee documentation for textField
appendstringyesSee documentation for textField
<cfoutput>
    #startFormTag(action="something")#
        <!--- form controls go here --->
        #submitTag()#
    #endFormTag()#
</cfoutput>