{% if config.label %}
<{{ config.label_tag|default:"h4" }} class="{% if config.label_class %}{{ config.label_class }}{% endif %}">
{{ config.label }}
{{ config.label_tag|default:"h4" }}>
{% endif %}
{% include "form/helptext.html" with helptext=config.helptext helptext_length=config.helptext_length %}
{{ formset.management_form }}
{% include "form/errors.html" with errors=formset.non_form_errors %}
{% form form using %}
{% for qg_form in formset.forms %}
{% with initial_link_data=config.initial_links|get_by_index:forloop.counter0 %}
{# Placeholder #}
{% for field in qg_form.visible_fields %}
{% with template=config.templates|get_by_keyword:field.name options=config.options|get_by_keyword:field.name %}
{% if template %}
{% formrow field using template %}
{% else %}
{% formrow field using "form/question/default.html" %}
{% endif %}
{% endwith %}
{% endfor %}
{% for field in qg_form.hidden_fields %}{% formfield field %}{% endfor %}