Miscellaneous
errorMessagesFor()
Signature
Section titled “Signature”errorMessagesFor() — returns any
Description
Section titled “Description”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.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
objectName | string | yes | — | The variable name of the object to display error messages for. |
class | string | yes | errorMessage | CSS class to set on the ul element. |
showDuplicates | boolean | yes | true | Whether or not to show duplicate error messages. |
Examples
Section titled “Examples”errorMessagesFor(objectName [, class, showDuplicates ]) <!--- view code --->
<cfoutput>
#errorMessagesFor(objectName="user")#
</cfoutput>