clearErrors()
Description
Clears out all errors set on the object or only the ones set for a specific property or name.
Function Syntax
clearErrors([ property, name ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
property |
string |
No | |
Specify a property name here if you want to clear all errors set on that property. |
name |
string |
No | |
Specify an error name here if you want to clear all errors set with that error name. |
Examples
<!--- Clear all errors on the object as a whole --->
<cfset this.clearErrors()>
<!--- Clear all errors on `firstName` --->
<cfset this.clearErrors("firstName")>
