Say I have a custom field customField1 in the current transition screen and I have behaviours that may set that customField to error
def customField1 = getFieldByName("customField1")
<Some condition>
customField1.setError("This field has an incorrect value")
or
<Some other condition>
customField1.clearError()
is there a way to inspect the field to see if it currently has an error?
may be something like
customField1.hasError() that returns true if the field in the form is supposed to be showing an error like after the <Some condition> example above or false if the field is the form is not supposed to be showing an error like after the <Some other condition> example above.
Hope this makes sense. Thanks