{% set cf_count=0 %} {% for field in widget.fields %} {% set ctx=widget.context_for(field) %} {% if cf_count%4 == 0 and cf_count != 0 %}