Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] CB Auto Actions (Field type) not working

  • AiC13
  • AiC13
  • OFFLINE
  • Posts: 25
  • Thanks: 3
  • Karma: 1
11 years 1 month ago - 11 years 1 month ago #234048 by AiC13
Hi,

I am trying to set up what I think are some simple CB Auto Actions (Field type), but they aren't working. I would appreciate any help or suggestions.

I want the CB Auto Action to set a value ("1" or "2") for a CB custom field, depending on the value that the user chooses in another CB Profile field ("Pioneer" or "Partner"). This CB Auto Action should be triggered when a new user registers, or when an existing user edits their profile.

I created 3 CB Auto Actions to trigger when the value of the Profile field is either NULL, Pioneer, or Partner. But after a new user registers or an existing user changes the existing profile field, the target db field is always blank (not NULL).

One setting I might have incorrect is for access. Currently all of the Auto Actions are set for "Everyone" under Custom ACL. Could that be part of the problem? If so, what should that be set to?

I'm attaching screenshots of the settings for my 3 Auto Actions. Thanks in advance for any help you can provide!

Best regards,

Paul Orwig
Attachments:
Last edit: 11 years 1 month ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #234075 by krileon
Replied by krileon on topic CB Auto Actions (Field type) not working
Your conditional is not valid, it's always failing at your conditional. You can find this out easier when enabling debugging at the bottom of your conditional as it'll var_dump where it fails. You need to use valid substitutions so "cb_usertype" should be "[cb_usertype]". Please see the below tutorial for further substitution usage information.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb


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.
The following user(s) said Thank You: AiC13

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

  • AiC13
  • AiC13
  • OFFLINE
  • Posts: 25
  • Thanks: 3
  • Karma: 1
11 years 1 month ago #234278 by AiC13
Replied by AiC13 on topic CB Auto Actions (Field type) not working
Thanks Kyle, your feedback solved my problem, and my Field type Auto Actions are working now!

Now I'm moving on to my next step for this project, which is creating some Query type Auto Actions that will add/update fields from CB profile into db table for another extension.

Best,

Paul Orwig

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

Moderators: beatnantkrileon
Powered by Kunena Forum