Skip to content

Miscellaneous

clearErrors()

clearErrors() — returns any

Clears out all errors set on the object or only the ones set for a specific property or name.

NameTypeRequiredDefaultDescription
propertystringyesSpecify a property name here if you want to clear all errors set on that property.
namestringyesSpecify an error name here if you want to clear all errors set with that error name.
clearErrors([ property, name ]) <!--- Clear all errors on the object as a whole --->
<cfset this.clearErrors()>

<!--- Clear all errors on `firstName` --->
<cfset this.clearErrors("firstName")>