I have a rather long form with many different fields. In my Twig template a few of them need special output, but most of them can be handled with a call to form_row(). I do my rendering in a loop like this:
{% for key, elm in form %} {% if key != 'myfield' %} {{ form_row(elm) }} {% endif %} {% endfor %} {# Rendering of myfield #} Now I'd like to suppress the rendering of hidden fields inside the loop. I'll render them later in one central place. Is there any way to check if a hidden field would be rendered? I've tried elm.type but that property does not exist. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en