View Helpers
submitTag()
Signature
Section titled “Signature”submitTag() — returns string
Available in: controller
Category: General Form Functions
Description
Section titled “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.
Parameters
Section titled “Parameters”| Name | 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. |
prepend | string | no | — | String to prepend to the form control. Useful to wrap the form control with HTML tags. |
append | string | no | — | String to append to the form control. Useful to wrap the form control with HTML tags. |
encode | any | no | true | When set to true, encodes tag content, attribute values, and URLs so that Cross Site Scripting (XSS) attacks can be prevented. Set to attributes to only encode attribute values and not tag content. |
Examples
Section titled “Examples”#startFormTag(action="something")#
<!--- form controls go here --->
#submitTag()#
#endFormTag()#