A
A
alexander_chn2017-06-20 17:04:50
1C-Bitrix
alexander_chn, 2017-06-20 17:04:50

How to change radiobutton to checkbox in Bitrix filter?

Good afternoon!
I put the catalog.filter component on the page, set up the fields in it, everything works, everything is fine. But there is a question, how to put checkboxes instead of radiobutton - prntscr.com/fm0b0h
These properties (Bouquets for gifts, Baskets and planters, etc.) in the properties of the infoblock have the List type, appearance - Checkboxes and one value YES
The output code for these properties in the filter here:

<?foreach($arResult["ITEMS"] as $arItem):?>
      <?if(!array_key_exists("HIDDEN", $arItem)):?>
        <tr>
          <td valign="top"><?=$arItem["NAME"]?>:</td>
          <td valign="top"><?=$arItem["INPUT"]?></td>
        </tr>
      <?endif?>
    <?endforeach;?>

here is this line <?=$arItem["INPUT"]?> and displays these radiobutton
What should be changed in the properties of the infoblock or block so that checkboxes are displayed and functionality is not lost?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Emelyanov, 2017-06-20
@babarun

cb58ffdbcb484e529798ac4d5863cc21.png

A
alexander_chn, 2017-06-20
@alexander_chn

the bottom line is that I do not have a smart filter, but catalog.filter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question