Answer the question
In order to leave comments, you need to log in
How to get rid of index output in bitrix?
Good afternoon! How to get rid of indexes
You are given a custom field with data type binding to elements of higload blocks.
<?if($arResult["USER_PROPERTIES"]["SHOW"] == "Y"):?>
<?$first = true;?>
<?foreach ($arResult["USER_PROPERTIES"]["DATA"] as $FIELD_NAME => $arUserField):?>
<div class="form-group row">
<label class="col-sm-4 col-form-label">
<?=$arUserField["EDIT_FORM_LABEL"]?>
<?if ($arUserField["MANDATORY"]=="Y"):?>
<span class="starrequired">*</span>
<?endif;?>
</label>
<div class="col-sm-8">
<?$APPLICATION->IncludeComponent(
"bitrix:system.field.edit",
$customTemplate[$arUserField["USER_TYPE"]["USER_TYPE_ID"]],
array("bVarsFromForm" => $arResult["bVarsFromForm"], "arUserField" => $arUserField), null, array("HIDE_ICONS"=>"Y"));?>
</div>
</div>
<?endforeach;?>
<?endif;?>
Answer the question
In order to leave comments, you need to log in
Of course, I can be mistaken, but here is the second parameter, is it not responsible for this? (USER_TYPE_ID)
$customTemplate[$arUserField["USER_TYPE"]["USER_TYPE_ID"]],
Check what you have in $arUserField. If the problem is not in it, and changing its ID does not remove it, then just edit the corresponding template of the bitrix:system.field.edit component.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question