errorMessagesFor()
Description
Builds and returns a list (ul tag with a class of error-messages) containing all the error messages for all the properties of the object, if any. Returns an empty string otherwise.
Function Syntax
errorMessagesFor(objectName [, class, showDuplicates ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
objectName |
string |
Yes | |
The variable name of the object to display error messages for. |
class |
string |
No | error-messages |
CSS class to set on the ul element. |
showDuplicates |
boolean |
No | true |
Whether to show duplicate error messages. |
Examples
<!--- view code --->
<cfoutput>
#errorMessagesFor(objectName="user")#
</cfoutput>
