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: 3 years 9 months ago by krileon. Reason: Added [SOLVED] tag to subject
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.
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.