N
N
Nikolai2018-06-21 14:57:14
1C-Bitrix
Nikolai, 2018-06-21 14:57:14

How to get rid of index output in bitrix?

Good afternoon! How to get rid of indexes 5b2b924e94ebe351765824.png
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

2 answer(s)
D
Denis Melnikov, 2018-06-21
@Mi11er

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"]],

A
Alexander Filippenko, 2018-06-21
@alexfilus

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 question

Ask a Question

731 491 924 answers to any question