Skip to content

Miscellaneous

buttonTag()

buttonTag() — returns any

Builds and returns a string containing a button form control.

NameTypeRequiredDefaultDescription
contentstringyesSave changesContent to display inside the button.
typestringyessubmitThe type for the button: button, reset, or submit.
valuestringyessaveThe value of the button when submitted.
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
<!--- view code --->
<cfoutput>
    #startFormTag(action="something")#
        <!--- form controls go here --->
        #buttonTag(content="Submit this form", value="save")#
    #endFormTag()#
</cfoutput>