Answer the question
In order to leave comments, you need to log in
How to display a multiple property in Bitrix via API?
Hello! Bitrix has a multiple property of the list type with the following parameters:
Here is the code by which I display this property:
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$iblock_id = 2;
$section_id = 34;
$arSelect = Array(
"ID",
"NAME",
"PROPERTY_ACTION");
$arFilter = Array( "IBLOCK_ID"=>$iblock_id, "SECTION_ID"=>$section_id, "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y" );
$res = CIBlockElement::GetList(Array("SORT"=>"ASC"), $arFilter, false, false, $arSelect);
while($ob = $res->GetNextElement()) :
$arFields = $ob->GetFields();
echo $arFields['PROPERTY_ACTION_VALUE'] . '<hr>';
endwhile;
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
Answer the question
In order to leave comments, you need to log in
this code will be inside your cycle, this is Bitrix, alas and ah
$VALUES = array();
$res = CIBlockElement::GetProperty($IBLOCK_ID, $ELEMENT_ID, Array("sort"=>"asc"), array("CODE" => "UF_NOTE_USER"));
while ($ob = $res->GetNext())
{
$VALUES[] = $ob['VALUE'];
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question