D
D
Doctor_Dalek2019-09-12 07:55:28
1C-Bitrix
Doctor_Dalek, 2019-09-12 07:55:28

Getting infoblock property values?

Two problems arose while working:
1. I'm trying to get the value of the properties of an infoblock element, but only the ID of this element is taken (taken correctly) from the drop-down list on the form. And you would need the name of the element: c
2. Before getting the ID / name of the above element, the parent section is also selected from the drop-down list on the form, and depending on what is selected in it, options for another list are built. So. I can’t get the value of the parent element, in any way (
Everything is done through $ arFields
Please help: with

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
N, 2019-09-12
@Fernus

No one will write the finished code ... throw off what you have reached ... they will help you further ...

D
Doctor_Dalek, 2019-09-12
@Doctor_Dalek

$name = iconv('CP1251', 'UTF-8', $arFields["PROPERTY_VALUES"]["NAME"]); - user input is read
$spec = iconv('CP1251', 'UTF-8', $arFields["PROPERTY_VALUES"]["SPECIALIZATION"]); - parent section, dropdown list not read
$spesh = iconv('CP1251', 'UTF-8', $arFields["PROPERTY_VALUES"]["SPECIALIST"]); - id is also read from the drop-down list,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question