Miscellaneous
clearErrors()
Signature
Section titled “Signature”clearErrors() — returns any
Description
Section titled “Description”Clears out all errors set on the object or only the ones set for a specific property or name.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
property | string | yes | — | Specify a property name here if you want to clear all errors set on that property. |
name | string | yes | — | Specify an error name here if you want to clear all errors set with that error name. |
Examples
Section titled “Examples”clearErrors([ property, name ]) <!--- Clear all errors on the object as a whole --->
<cfset this.clearErrors()>
<!--- Clear all errors on `firstName` --->
<cfset this.clearErrors("firstName")>