Normally, we can have the Symfony Form to output the field errors using the form_errors twig function, but how can we get the specific errors of an individual field, but not display it?
Or is there any way that we can examine if one field has errors or not?
Normally, we can have the Symfony Form to output the field errors using the
Share
You’re looking for
form.fieldname.vars.errors. If you want to check if a form field has errors or not, use thelengthfilter.