Mark empty or wrong input field when error is returned
Mark empty or wrong input field when error is returned
Good afternoon (o;
Is there a way to automatically mark the inputs fields in the editor which are either wrong or missing
from a returned ajax call?
So far I've only found a way to display an error message at the bottom of the form when my ajax returns it.
thanks in advance
richard
Answers
If you use the field validators server side this happens automatically. You can also do field validation client side which is similar.
Here are two code examples:
Server side field validation:
This will show an error message in the Editor form underneath the field and will highlight the field to be in error.
Client side field validation:
This will do the same thing.
You are probably using a global validator server side which does not highlight the fields in error but only displays an error message at the bottom of the form. Like this for example: