hiddenField()
Description
Builds and returns a string containing a hidden field form control based on the supplied objectName and property.
Function Syntax
hiddenField(objectName, property)
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
objectName |
any |
Yes | |
The variable name of the object to build the form control for. |
property |
string |
Yes | |
The name of the property to use in the form control. |
Examples
<!--- view code --->
<cfoutput>
<p>#hiddenField(objectName="user", property="id")#</p>
</cfoutput>
