Hi, I'd like to set a length size for a system field 'Decsription'. I used this script:
def descriptionField = getFieldById("description")
if ((descriptionField.getValue() as String).length() > 5) {
descriptionField.setError("ength of the field should be less than 5 chars")
} else {
descriptionField.clearError()
}
The problem is the script work for text field but I've found that my field's type is Wiki style.
Is there any way how I can set the length size for this field?