Object::asHiddenFields
Summary:
This method will generate hidden form fields, one for each attribute of the object.
Useful for passing object values from one HTML/CFM page to another.
Parameters:
Parameter |
Description |
Default |
Required |
include |
Comma-separated list of attributes to include. If not list is provided,
then all attributes are included.
|
|
No |
exclude |
Comma-separated list of attributes to exclude. If not list is provided,
then all attributes are included.
|
|
No |
Returns:
Example:
<!--- this example includes all fields --->
<cf_cfoInvokeMethod method="aPerson.asHiddenFields">
<!--- this example includes only firstName and LastName --->
<cf_cfoInvokeMethod method="aPerson.asHiddenFields" include="firstName,lastName">
<!--- this example includes all except dateOfBirth --->
<cf_cfoInvokeMethod method="aPerson.asHiddenFields" exclude="dateOfBirth">
|