Buy Now
Sign in

Add user to 2 groups

osinalex , May 16 2019, 14:40
osinalex 1
May 16 2019, 14:40 #386912
How add user registration to 2 group?
Work only first group
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
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!