{% for field in fields %}
    {% set value = submission.getFieldValue(field.fieldKey) %}

    {% if field.getValueAsString(value, submission) and not field.getIsCosmetic() %}
        {{ formieInclude('field') }}
    {% endif %}
{% endfor %}