Since upgrading to CB 2.0.13 from CB 1.9 my Auto Actions Add usergroup adds the wrong user to the wrong usergroup. I use cb_usertype field to capture value and then want auto action to add user to that group. However, the action is picking the wrong group. any ideas?
It can only adds exactly what you've selected. Please provide your exact auto action configuration. You may have issues with user object chaining and need to enable reload user under the parameters tab of your action.
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.
Under global tab I have "Triggers" set to onAfterUserRegistration
Type=Usergroup
User=Automatic
Access=Custom ACL: Everybody
Under Conditions Tab
Conditional enabled "YES" set to cb_usertype Equal To Agent where Agent is a selected parameter of custom field "cb_usertype" in the user registration.
Under "Actions" tab
Mode = Add Usergroups
Groups = Agent where Agent is a under the Registered Group
Under the "Parameters" tab
I have set Reload User to "Yes"
When a user registers and selects Agent in the Usergroup Field (i.e. cb_usertype) at registration it still only adds the user to the "Registered" group and not the "Agent". This applies to other selected parameters as well.
Your condition is failing. You didn't supply a valid substitution so you're doing a literal string comparison of cb_usertype = Agent, which is always false. Your condition should be as follows.
[cb_usertype] Equal To Agent
Please note you can debug this and much more when creating actions. Enable debug mode and maximum error reporting in Joomla global configuration. Next under the Parameters tab of your action enable Debug. It'll output when a condition failed with the exact values it tried comparing in addition to any action configuration errors.
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.