I
I
Ivan2019-06-07 10:19:21
1C-Bitrix
Ivan, 2019-06-07 10:19:21

Bitrix - How to choose a user group during registration?

There are several user groups, where during registration you need to select one from the drop-down list

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
serginhold, 2019-06-07
@serginhold

output and select, then process and save, what kind of questions are on the toaster, also "Medium" complexity

Y
Yaroslav Alexandrov, 2019-06-07
@alexyarik

Create a user field type "list" USER object, then catch the selected value from the list in init.php in the "OnBeforeUserRegister" event before trying to register a new user
https://dev.1c-bitrix.ru/api_help/main/events/onbe. ..
depending on the value, place the user in one group or another.

E
Evgeny Nikolaev, 2019-06-10
@nikolaevevge

If you are interested in API methods, here are some code examples blog.ivru.net/?id=29 registering via API with simultaneous assignment to the desired group. In the same place you will find how to get these groups using API methods. It remains to load the form and add what you need to the authorization script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question