Need some help with single check box.
-
easistudio
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
11 years 3 weeks ago #1729
by easistudio
I see from a previous post that this tool works with radio button fields so I am assuming it works with check boxes (single) too?
My use case is as follows:
- if the checkbox is ticked I want the user to be in group advertisers;
- if the checkbox is not ticked (empty), I want to the user in group registered.
Please could you post the code to put in the Field to Group Mapping box assuming check box name is cb_profiletype.
Many thanks in anticipation.
Please Log in or Create an account to join the conversation.
-
easistudio
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
11 years 3 weeks ago - 11 years 3 weeks ago #1730
by easistudio
Success. Got it working after following another thread with the following:
cb_profiletype;Yes;Advertisers;True
Interestingly users who become advertisers are also registered too. I assume this is so that users can switch on/off their usergroups?
Last edit: 11 years 3 weeks ago by easistudio.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 3 weeks ago #1732
by admin
Meanwhile change rule putting True in lowercase:
cb_profiletype;Yes;Advertisers;true
Rule is case sensitive.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 3 weeks ago - 11 years 3 weeks ago #1733
by admin
Ok,
the single checkbox field is supported and return Yes when checked (and empty string when not checked). So the rule above works.
The registered group should be always assigned to registered users, so leave it as is.
Kind regards,
Luigi
Last edit: 11 years 3 weeks ago by admin.
Please Log in or Create an account to join the conversation.
Time to create page: 0.140 seconds