Skip to Content Skip to Menu

[SOLVED] Strange behaviour of auto action

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 382
  • Thanks: 36
  • Karma: 2
  • Add-ons
2 years 7 months ago - 2 years 7 months ago #328856 by liaskas
Hello

2 Auto actions

1...
creates an activity when a user fills or empties his profile description. (works great)
Auto action details:
Code:
GLOBAL onAfterUserUpdate -> Type: CB Activity, User Automatic, Access Everybody CONDITIONS Value: [approved] equal to 1 Value: [confirmed] equal to 1 Value: [block] equal to 0 Value: [var1_cb_description] Not equal to [var3_cb_description] ACTION Mode: Activity Method: Create, Asset: profile.[USER_ID].field.[FIELD_ID] Title: [the title] Message: [cb:if var1_cb_description!=""]Member [username] changed description field.[cb:else]Member [username] removed description from profile.[/cb:else][/cb:if]


2...
On the second auto action i need the same for the users phone number field. So the auto action is like this... but it does not work
Auto action details:
Code:
GLOBAL onAfterUserUpdate -> Type: CB Activity User Automatic Access Everybody CONDITIONS Value: [approved] equal to 1 Value: [confirmed] equal to 1 Value: [block] equal to 0 Value: [var1_cb_thlefwno_epikoinvnias] Not equal to [var3_cb_thlefwno_epikoinvnias] ACTION Mode: Activity Method: Create, Asset: profile.[USER_ID].field.[FIELD_ID] Title: [the title] Message: [cb:if var1_cb_thlefwno_epikoinvnias!=""]Member [username] changed Phone field.[cb:else]Member [username] removed his phone from profile.[/cb:else][/cb:if]

Can you please help on what i am missing?

Thank you
Last edit: 2 years 7 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: 48424
  • Thanks: 8274
  • Karma: 1443
2 years 7 months ago - 2 years 7 months ago #328859 by krileon
Replied by krileon on topic Strange behaviour of auto action
My best guess is the field name maybe isn't right in your condition; typo or error with copy pasting (e.g. trailing space inside brackets). I assume for [FIELD_ID] you've actually supplied the field id though? As there is no field id for CB Auto Actions to substitute in. Also verify it's truly not working by checking CB Activity > Activity as it could be working, but the asset isn't correct for the stream you're expecting it to display on.


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.
Last edit: 2 years 7 months ago by krileon.
The following user(s) said Thank You: liaskas

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

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 382
  • Thanks: 36
  • Karma: 2
  • Add-ons
2 years 7 months ago #328861 by liaskas
Replied by liaskas on topic Strange behaviour of auto action
The problem was that [FIELD_ID] was not the field id number.

It was working as [FIELD_ID] for the "description" field and i have copied that auto action, made the changes but did not replace [FIELD_ID] with a number.

Now everything is working fine!

Thank you Krileon once more.
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