Hi folks
I Am trying to validate a single-line text box to include $ values like $1020.00 and this is the behavior on the custom field. I see no error and still can't have this behavior working
def field = getFieldById(getFieldChanged())
def val = field.getValue() as String
if (!val.matches("\$[0-9].[0-9]{2})")) {
field.setError("Amount must be in dollar format.")
} else {
field.clearError()
}