<xf:foreach loop="$xf.app.getCustomFields({$type}, {$group}, {$onlyInclude}, {$additionalFilters})" key="$fieldId" value="$fieldDefinition">
<xf:if is="$fieldDefinition.hasValue({$set.{$fieldDefinition.field_id}})">
<dl class="{$valueClass}">
<dt>{$fieldDefinition.title}</dt>
<dd>
<xf:macro name="custom_field_value"
arg-definition="{$fieldDefinition}"
arg-value="{$set.{$fieldDefinition.field_id}}" />
</dd>
</dl>
</xf:if>
</xf:foreach>