Miscellaneous
errorMessageOn()
Signature
Section titled “Signature”errorMessageOn() — returns any
Description
Section titled “Description”Returns the error message, if one exists, on the object’s property. If multiple error messages exist, the first one is returned.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
objectName | string | yes | — | The variable name of the object to display the error message for. |
property | string | yes | — | The name of the property to display the error message for. |
prependText | string | yes | — | String to prepend to the error message. |
appendText | string | yes | — | String to append to the error message. |
wrapperElement | string | yes | span | HTML element to wrap the error message in. |
class | string | yes | errorMessage | CSS class to set on the wrapper element. |
Examples
Section titled “Examples”errorMessageOn(objectName, property [, prependText, appendText, wrapperElement, class ]) <!--- view code ---> <cfoutput> #errorMessageOn(objectName="user", property="email")# </cfoutput>