Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] CB auto actions - detect on user update profile if a field value change.

  • tribalion
  • tribalion
  • OFFLINE
  • Posts: 21
  • Thanks: 4
  • Karma: 0
7 years 5 months ago - 7 years 5 months ago #295972 by tribalion
Hi team,

Using the plugin auto actions, I try to detect if a user change the value of a field (redirect_email) regarding to the stored value.

I try to preceed as following but without success :

Tigger : OnBeforeUserUpdate
Conditions : [cb_redirect_email] Not egal to [post_cb_redirect_email]

I found the [post_VALUE] in CB Field Integrations Conditionals Tab Parameters
but not sure it works in this plugin

When modifying the field (redirect email) or not, the action does not proceed.

Is there a way to do this?

Thanks
Eric
Last edit: 7 years 5 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48708
  • Thanks: 8319
  • Karma: 1447
7 years 5 months ago #295990 by krileon
For the profile update triggers you need to compare raw database var1 and var3 values. Example as follows.

[var1_cb_redirect_email] Not Equal To [var3_cb_redirect_email]

Variable 1 for the profile update trigger is the new and up to date user object. Variable 3 is the old user object before the changes were made. You however probably should be using the onAfterUserUpdate trigger unless you're needing to alter the user object before it's saved. Note that trigger is for frontend only if you need it for backend as well then you also need to select onAfterUpdateUser in Triggers.


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

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

  • tribalion
  • tribalion
  • OFFLINE
  • Posts: 21
  • Thanks: 4
  • Karma: 0
7 years 5 months ago #296018 by tribalion
Great; it work perfectly !
I was not able to find it
Thanks - Eric
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum