Answer the question
In order to leave comments, you need to log in
How to add a value to the multiple property of an element in Bitrix?
I use the following code - it deletes the previous data from the properties, inserts new ones, but it is necessary that the old ones be saved ... Well, you understand ...
$props['MESSAGES'][] = array("VALUE" => array ("TEXT" => $_POST['text'], "TYPE" => "text"));
$props['AUTHOR'][] = $USER->GetID();
$props['DATE'][] = date('d.m.Y H:i:s', time());
CIBlockElement::SetPropertyValuesEx($_POST['objavID'], 12, $props);
Answer the question
In order to leave comments, you need to log in
The most obvious option is to read the old data first (eg via CIBlockElement::GetProperty() ). As far as I remember, the Bitrixoids themselves do the same in the admin panel.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question