Skip to content

Miscellaneous

errorsOn()

errorsOn() — returns any

Returns an array of all errors associated with the supplied property (and error name if passed in).

NameTypeRequiredDefaultDescription
propertystringyes—Specify the property name to return errors for here.
namestringyes—If you want to return only errors on the above property set with a specific error name you can specify it here.
errorsOn(property [, name ]) <!--- Get all errors related to the email address of the user object ---> <cfset errors = user.errorsOn("emailAddress")>