Buy Now
Sign in

Add user to 2 groups

osinalex , May 16 2019, 14:40
O
osinalex 1
May 16 2019, 14:40 #386912
Hello.
How add user registration to 2 group?
Work only first group
2019-05-16_17-39-36.jpg
admin 27
May 18 2019, 14:49 #386939
Before the "Save user" action add a PHP action and use this code:
return [2, $this->data("user_group")];
Name your PHP action "groups" then use {var:groups} in the "Save user" action setting.
Best regards
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!