{section name='i' start=1 loop=$rowCount} {assign var='blockId' value=$smarty.section.i.index} {/section}
{foreach from=$soft_credit_custom_groupTree.$blockId item=cd_edit key=group_id name=custom_sets} {if $cd_edit.is_multiple and $multiRecordDisplay eq 'single'} {assign var="isSingleRecordEdit" value=TRUE} {else} {* always assign to prevent leakage*} {assign var="isSingleRecordEdit" value=''} {/if} {if $isSingleRecordEdit}
{include file="CRM/Custom/Form/Edit/CustomData.tpl" customDataEntity='soft_credit_custom'}
{else}
{if !$skipTitle}
{$cd_edit.title}
{/if}
{include file="CRM/Custom/Form/Edit/CustomData.tpl" customDataEntity='soft_credit_custom'}
{/if}
{/foreach}