Return to v1.4.5 docs

errorMessagesFor()



Builds and returns a list (ul tag with a default class of errorMessages) containing all the error messages for all the properties of the object (if any). Returns an empty string otherwise.

Name Type Required Default Description
objectName string Yes The variable name of the object to display error messages for.
class string No errorMessage CSS class to set on the ul element.
showDuplicates boolean No true Whether or not to show duplicate error messages.
errorMessagesFor(objectName [, class, showDuplicates ]) <!--- view code --->
<cfoutput>
    #errorMessagesFor(objectName="user")#
</cfoutput>