submitTag()
Description
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.
Function Syntax
submitTag([ value, image, disable ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
value |
string |
No | Save changes |
Message to display in the button form control. |
image |
string |
No | |
File name of the image file to use in the button form control. |
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 --->
#submitTag()#
#endFormTag()#
</cfoutput>
