You are viewing documentation for v1.1.x. Change

buttonTag()

Description

Builds and returns a string containing a button form control.

Function Syntax

buttonTag([ content, type, image, value, disable ])

Parameters

Parameter Type Required Default Description
content string No Save changes Content to display inside the button.
type string No submit The type for the button: button, reset, or submit.
image string No File name of the image file to use in the button form control.
value string No save The value of the button when submitted.
disable any No Whether or not to disable the button upon clicking. (Prevents double-clicking.)

Examples

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