1. namly161
  2. General
  3. Friday, August 05 2016, 05:05 AM
Hi admin

I want to create a select field to choose usergroup.
When register, user A choose usergroup A, user A will belong usergroup A.
When edit, User A choose update usergroup A to B, user A will belong usergroup B
Please you guide me and for sample.

Thanks admin
admin Accepted Answer
Admin
Hi,
you can do this with simple conditions:
- Create a Select field with these options
groupA|Group A
groupB|Group B
groupC|Group C
- In this fields go to tab "Parameters" and set these conditions
1. if equal to Custom Value "groupA" add to usergroup Group A
2. if equal to Custom Value "groupB" add to usergroup Group B
3. if equal to Custom Value "groupC" add to usergroup Group C
(see screenshot for example)

NOTE
Conditions have 2 ways, so if condition if not met then it remove from usergroup, for example:
if user choose Group B:
1. Remove from usergroup Group A
2. Add to usergroup Group B
3. Remove from usergroup Group C
Attachments (1)
  1. more than a month ago
  2. General
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.