Miscellaneous
errorsOn()
Signature
Section titled “Signature”errorsOn() — returns any
Description
Section titled “Description”Returns an array of all errors associated with the supplied property (and error name if passed in).
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
property | string | yes | — | Specify the property name to return errors for here. |
name | string | yes | — | If you want to return only errors on the above property set with a specific error name you can specify it here. |
Examples
Section titled “Examples”errorsOn(property [, name ]) <!--- Get all errors related to the email address of the user object ---> <cfset errors = user.errorsOn("emailAddress")>