hiddenFieldTag()
Description
Builds and returns a string containing a hidden field form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes.
Function Syntax
hiddenFieldTag(name [, value ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name |
string |
Yes | |
Name to populate in tag's name attribute. |
value |
string |
No | |
Value to populate in tag's value attribute. |
Examples
<!--- Basic usage usually involves a `name` and `value` --->
<cfoutput>
#hiddenFieldTag(name="userId", value=user.id)#
</cfoutput>
