Miscellaneous
buttonTag()
Signature
Section titled “Signature”buttonTag() — returns any
Description
Section titled “Description”Builds and returns a string containing a button form control.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
content | string | yes | Save changes | Content to display inside the button. |
type | string | yes | submit | The type for the button: button, reset, or submit. |
value | string | yes | save | The value of the button when submitted. |
image | string | yes | — | File name of the image file to use in the button form control. |
disable | any | yes | — | Whether or not to disable the button upon clicking (prevents double-clicking). |
prepend | string | yes | — | See documentation for textField |
append | string | yes | — | See documentation for textField |
Examples
Section titled “Examples”<!--- view code --->
<cfoutput>
#startFormTag(action="something")#
<!--- form controls go here --->
#buttonTag(content="Submit this form", value="save")#
#endFormTag()#
</cfoutput>