Skip to Content Skip to Menu

🏖 Summer has arrived! Start your summer right with our summer sale! Get 25% off professional and developer memberships with code SUMMER-2025!

Auto action on progress field completion completion not working

  • azjr
  • azjr
  • OFFLINE
  • Posts: 99
  • Thanks: 10
  • Karma: 2
9 years 2 months ago #281729 by azjr
OK - I think that was my initial route to use additional checkbox (single) with auto actions - now, as the checkbox actually works, I should be able to execute it.
Reg. the auto action triggers for that function: the logic is that once user completes the all the steps required in "profile complete!" the "control checkbox" gets value 1. to trigger that, I'm using an auto action with the following triggers:
onAfterUpdateUser
onAfterUserLoginSuccess
onAfterUserUpdate
onUserLogin

do you think I overcompensated here? would be afterupdate... and afteruserupdate be sufficient?
Thanks!

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

  • azjr
  • azjr
  • OFFLINE
  • Posts: 99
  • Thanks: 10
  • Karma: 2
9 years 2 months ago #281744 by azjr
Kyle: either I'm not getting it or I'm confusing something during the setup.
Case:
cb_progress_account => progress field
cb_control => checkbox (single) => it should get value 1 after cb_progress_account =100
cb_progress_2 => progress field => in parameters > fields: it contains the cb_control as one of the progress options

Scenario: user logs in and completes it's profile (100%) - after saving changes:
a) cb_progress_account => will show bar with 100% completion
b) cb_progress_2 will show 1 item checked (cb_control => the bar will show i.e. 20% completion)

Method:
using auto action with the following:
type = field
triggers=? (testing with at least onAfterUpdateUser and onAfterUserUpdate)
conditions: [cb_progress_account] Equal to 100
action:
field=cb_control
operator=set(field=value)
value = 1
translate value = ? (tested with both yes/no)

Results:
I am not getting the expected results after saving the user data - the cb_control remains at 0

Please advise!
thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49427
  • Thanks: 8463
  • Karma: 1465
9 years 2 months ago #281748 by krileon
I would only use onAfterUpdateUser and onAfterUserUpdate. The rest aren't needed. Those cover frontend and backend profile updates and profile updates are how they're going to trigger completion to begin with so you should only need your action for those two cases.


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: azjr

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

  • azjr
  • azjr
  • OFFLINE
  • Posts: 99
  • Thanks: 10
  • Karma: 2
9 years 2 months ago #281750 by azjr
hmm.. OK - I did change the triggers to only those two - I'm still not getting the checkbox to get checked after saving... the cb_progress_account =100 but somehow the action is not executing the value into the cb_control checkbox field... any ideas?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49427
  • Thanks: 8463
  • Karma: 1465
9 years 2 months ago #281754 by krileon
What's the conditions on your auto 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.

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

  • azjr
  • azjr
  • OFFLINE
  • Posts: 99
  • Thanks: 10
  • Karma: 2
9 years 2 months ago - 9 years 2 months ago #281757 by azjr
Pls check my previous post - I've listed there the entire process as I've set it up
conditions:
[cb_progress_account]
select operator = Equal to
value = 100
input substitution (or "translate value") = tried with both Yes/No
Last edit: 9 years 2 months ago by azjr. Reason: correction

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

Moderators: beatnantkrileon
Powered by Kunena Forum