Provided by my validation.yml:
task:
- Email:
message: The email "{{ value }}" is not a valid email.
- MinLength: { limit: 50, message: You must be 50 or under to enter. }
My problem is that if I give the "wrong email address" in the task field, it gives two error messages:
The email "wrong-email" is not a valid email.
You must be 50 or under to enter.
In fact, I want to show only one error message at a time. This means that he should only check the "MinLength" check if it is a valid email address.
source
share