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] Clear field value after gj_onAfterLeaveGroup

  • NicoFaaij
  • NicoFaaij
  • OFFLINE
  • Posts: 114
  • Thanks: 10
  • Karma: 1
11 years 1 month ago - 11 years 1 month ago #233868 by NicoFaaij
Hi,

I have used auto actions for a while. Now I want to clean-up a field value of a user when het leaves a group.

I think this should work:


But it doesn't. I have tried a lot different ways with an Query auto actions etc. etc. But no action at all :(

Any idea what I do wrong or is there a problem with the gj_onAfterLeaveGroup tricker?

Many thanks in advance,
Nico
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 #233905 by krileon
Replied by krileon on topic Clear field value after gj_onAfterLeaveGroup
That trigger only fires if the user actually clicks to leave the group. Deleting them from the group via backend or frontend does not fire that trigger. So you may want to use the gj_onAfterDeleteUser trigger instead.


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.

  • NicoFaaij
  • NicoFaaij
  • OFFLINE
  • Posts: 114
  • Thanks: 10
  • Karma: 1
11 years 1 month ago #233910 by NicoFaaij
Replied by NicoFaaij on topic Clear field value after gj_onAfterLeaveGroup
Hi Krileon,

Yes, that is right, it have to been fired at the moment the user actually clicks himself on the leave url link to leave the group. But it doesn't get fired:-(

The user will not be deleted or manipulated by an administrator in front of backend.

The user stays active in Community Builder. Maybe in a later stage he will even join a different group. When he decides to leave the group I want that cb_teamnaam field to get empty in the database.

Regards, Nico

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 #233927 by krileon
Replied by krileon on topic Clear field value after gj_onAfterLeaveGroup
It maybe having a hard time finding the CB user object. Try the below settings.

User: Manually > Variable 4
Access: Everybody


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

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

  • NicoFaaij
  • NicoFaaij
  • OFFLINE
  • Posts: 114
  • Thanks: 10
  • Karma: 1
11 years 1 month ago #233967 by NicoFaaij
Replied by NicoFaaij on topic Clear field value after gj_onAfterLeaveGroup
Hi Kyle,

Yes, just

User: Manually > Variable 4

solved the issue.

Thank you verryyy much!
Nico
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