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.
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
<!--- view code --->
<cfoutput>
    #startFormTag(action="something")#
        <!--- form controls go here --->
        #buttonTag(content="Submit this form", value="save")#
    #endFormTag()#
</cfoutput>