You are viewing documentation for v1.1.x. Change

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 errorMessages CSS class to set on the ul element.
showDuplicates boolean No true Whether or not to show duplicate error messages.

Examples

<!--- view code --->
<cfoutput>
#errorMessagesFor(objectName="user")#
</cfoutput>