Search code examples
validationextjsextjs4extjs4.1extjs4.2

Extjs 4 - Error Message as validator?


I am locking for way to alert messages in Extjs4 to be just like validator alert ( red label with message beside the text field ).

I cannot use the validator because my error message should appear after press enter not just when type in text field.


Solution

  • You can use the markInvalid method to apply a custom error to a field.

    But note that this mark will be cleaned when calling isValid