{assign var=profileFieldName value=$field.name}
{if $prefix}
{assign var="formElement" value=$form.$prefix.$profileFieldName}
+ {assign var="rowIdentifier" value=$form.$prefix.$profileFieldName.id}
{else}
{assign var="formElement" value=$form.$profileFieldName}
+ {assign var="rowIdentifier" value=$field.name}
{/if}
{if $field.groupTitle != $fieldset}
{elseif $profileFieldName}
{* Show explanatory text for field if not in 'view' or 'preview' modes *}
{if $field.help_pre && $action neq 4 && $action neq 1028}
- <div class="crm-section helprow-{$profileFieldName}-section helprow-pre" id="helprow-{$profileFieldName}">
+ <div class="crm-section helprow-{$profileFieldName}-section helprow-pre" id="helprow-{$rowIdentifier}">
<div class="content description">{$field.help_pre}</div>
</div>
{/if}
{if $field.options_per_line != 0}
- <div class="crm-section editrow_{$profileFieldName}-section form-item" id="editrow-{$profileFieldName}">
+ <div class="crm-section editrow_{$profileFieldName}-section form-item" id="editrow-{$rowIdentifier}">
<div class="label option-label">{$formElement.label}</div>
<div class="content 3">
<div class="clear"></div>
</div>
{else}
- <div class="crm-section editrow_{$profileFieldName}-section form-item" id="editrow-{$profileFieldName}">
+ <div class="crm-section editrow_{$profileFieldName}-section form-item" id="editrow-{$rowIdentifier}">
<div class="label">
{$formElement.label}
</div>
{/if}
{* Show explanatory text for field if not in 'view' or 'preview' modes *}
{if $field.help_post && $action neq 4 && $action neq 1028}
- <div class="crm-section helprow-{$profileFieldName}-section helprow-post" id="helprow-{$profileFieldName}">
+ <div class="crm-section helprow-{$profileFieldName}-section helprow-post" id="helprow-{$rowIdentifier}">
<div class="content description">{$field.help_post}</div>
</div>
{/if}