I have a form in which some fields need to be checked on the server side.
When the form is submitted, the server checks the values โโof these fields, and if the checks are not performed, the server returns success: false (along with the name and error message of each field in which the check failed).
Now I need to display such fields as "invalid" and apply to them the same red border that ExtJS performed by default if the client-side check failed.
I tried using the following:
Ext.getCmp ('fieldId'). markInvalid () and invalidCls: 'x-form-invalid-field'
I used the above statements in the "failure" form callback function. These statuses are called, but do not affect such fields.
Thus, one could conduct the following:
How to mark invaild field and apply the same effect (with red borders) to it in case of unsuccessful user check?
Thanks in advance.
source share