Skip to Content Skip to Menu

cb-auto-actions-assigning-usergroup-based-on-cb-field-value

  • HdCms
  • HdCms
  • OFFLINE
  • Posts: 51
  • Thanks: 2
  • Karma: 0
9 years 7 months ago #261306 by HdCms
Hello,

I want to do the same thing as
www.joomlapolis.com/support/tutorials/107-use-cases/18237-cb-auto-actions-assigning-usergroup-based-on-cb-field-value

The only difference is that it is a multiselect field.
The user can select alter1 AND / OR alter2 ...

1/ The trigger is placed on adding after registering or changing their profile (frontend)
Type: Usergroup
Trigger: onAfterUserRegistration, "After profil edit display"
User: Automatic
Access: Everybody
Conditional: [cb_multiselect] Equal To alter1 OR [cb_multiselect] does contain To alter1
Mode: Add Usergroups
Groups: alter1

2/ It must change its selections.
Type: Usergroup
Trigger: "After profil edit display"
User: Automatic
Access: Everybody
Conditional: [cb_multiselect] not Equal To alter1 OR [cb_multiselect] does not contain To alter1
Mode: Remove Usergroups
Groups: alter1


This does not work.
Thank you for helping me is some urgency

Regards

Joomla 3.4.1
CB 2.0.7
CB Auto Actions 6.2.2

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #261354 by krileon
You need to use a Contains operator when testing against a multiselect. The Equal To operators will not work with it. For OR usage you need to use REGEX operator. Example usages as follows.

Single Value:
cb_select Contains Value1

Multiple Values:
cb_select Is REGEX /Value1|Value2/


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • HdCms
  • HdCms
  • OFFLINE
  • Posts: 51
  • Thanks: 2
  • Karma: 0
9 years 7 months ago #261367 by HdCms
Hi,

By editing the profile, it works 1 time randomly :blink:
I tried several unsuccessful configurations
I watched the videos, tutorials and spent hours
Do you want to have admin access because it seems that there is a problem ?
Regards

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago - 9 years 7 months ago #261421 by krileon
Both of your above conditions are not valid and will not work. Please see my previous reply. You need to supply valid conditions. Example as follows.

Action 1:
Conditional: [cb_multiselect] Does Contain alter1

Action 2:
Conditional: [cb_multiselect] Does Not Contain alter1

Basically the only thing you're changing in the tutorial is the conditional operator. The reason for this is multiselect fields store as VALUE1|*|VALUE2|*|VALUE3, etc.. so an Equal To will not work.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 9 years 7 months ago by krileon.
The following user(s) said Thank You: nant

Please Log in or Create an account to join the conversation.

  • HdCms
  • HdCms
  • OFFLINE
  • Posts: 51
  • Thanks: 2
  • Karma: 0
9 years 7 months ago #261459 by HdCms
Hi,

You say again the same thing !! :huh:
I have already made these tests but it does not always work :(

Maybe is it my bad English.
Can you access my account to check ?
Thanks

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 7 months ago #261470 by nant

HdCms wrote: Hi,

You say again the same thing !! :huh:
I have already made these tests but it does not always work :(

Maybe is it my bad English.
Can you access my account to check ?
Thanks


Can you please post images of your auto action and of your multiselect field configurations?

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum