{% set cf_count=0 %} {% for field in widget.fields %} {% set ctx=widget.context_for(field) %} {% if cf_count%4 == 0 and cf_count != 0 %}
 
{% endif %}
{{field.display(**ctx)}} {% if ctx.errors and field.show_errors %}
{{ctx.errors}}
{% endif %}
{% set cf_count=cf_count+1 %} {% endfor %}