Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
output and select, then process and save, what kind of questions are on the toaster, also "Medium" complexity
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.
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 questionAsk a Question
731 491 924 answers to any question