{# Keep track of the outer group field #} {% set groupField = field %} {% if value %}
{% for field in field.getFields() %} {# Update the namespace for the field #} {% do field.setParentField(groupField) %} {% set fieldValue = submission.getFieldValue(field.fieldKey) ?? field.normalizeValue(field.getDefaultValue(), null) %} {% set html = field.getEmailHtml(submission, notification, fieldValue) %} {% if html %} {% endif %} {% endfor %}
{% if field.hasLabel %} {{ field.label | t('formie') }} {% endif %} {{ html | raw }}
{% endif %}