Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question