A
A
alexander_chn2018-04-21 16:22:07
1C-Bitrix
alexander_chn, 2018-04-21 16:22:07

Is it possible to create an infoblock in Bitrks in which the user can add the required number of properties himself?

Hello! Is it possible to create such functionality in Bitrix, in which the user will be able to set the required number of properties himself. Something like this prntscr.com/j882x8 - add a MORE button and when you click it, a box appears at the bottom??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2018-04-23
@vaajnur

why not? add fields using jquery. further in the php handler dynamically add properties

$arFields = Array(
   "NAME" => "Внешний ID элемента",
   "ACTIVE" => "Y",
   "SORT" => "600",
   "CODE" => "ExtElementID",
   "PROPERTY_TYPE" => "E",
   "IBLOCK_ID" => 2, 
   "LINK_IBLOCK_ID" => 1
);
      
$ibp = new CIBlockProperty;
$PropID = $ibp->Add($arFields);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question