Symfony2 Twig: Conditionally display form errors in Twig views
This will only show form errors if there are any in your form view.
{% if form_errors(form)!='' %}
{{ form_errors(form) }}
{% endif %}
This will only show form errors if there are any in your form view.
{% if form_errors(form)!='' %}
{{ form_errors(form) }}
{% endif %}