In Twig template I check if a field has an error like this:
{% if form.points.get(\'errors\') is not empty %}
Is there any method like:
I had a similar problem, but form.points
doesn't exist in my twig templates.
I had to get the number of errors in the controller, then pass it into my templates as a variable. $form->getErrors()
does not behave as you might expect in your controller though. See this SO question for a function that will get the form errors correctly.