A
A
Alexander Sinitsyn2018-11-16 15:03:53
1C-Bitrix
Alexander Sinitsyn, 2018-11-16 15:03:53

What should be done so that when displaying a custom field, the selected elements of another infoblock are displayed at the top of the list?

Custom field type Binding to elements inf. blocks, multiple.
A simple list of elements with flags is displayed. Maybe you can raise these flags up so that they are immediately visible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2018-11-16
@a_u_sinitsin

You can solve it in a couple of ways:
1) write your own type of UF field and draw the conclusion in it as you need. Here is the class for the UF property of type "Binding to IB element" bitrix/modules/main/classes/general/usertypeelement.php . You can copy and modify it as you need, and then connect it in the OnUserTypeBuildList event
2) write some kind of js code that will connect to the page and sort the option inside the select that displays the elements

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question