Skip to Content Skip to Menu

Auto Action Documentation re: Conditions

  • cgwhite
  • cgwhite
  • OFFLINE
  • Posts: 64
  • Thanks: 5
  • Karma: 0
6 years 11 months ago #298496 by cgwhite
Dear All,

Can someone point me in the direction of the documentation for auto actions and how to configure conditions.

I want to be able to change a users access group when an administrator changes a CB field to show that they have given up their membership.

Regards,

Chris.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 11 months ago #298514 by krileon
Replied by krileon on topic Auto Action Documentation re: Conditions
There is no documentation for CB Auto Actions. Review the parameter descriptions carefully. As it's a tool there's not much to document beyond usecase tutorials, which may or may not be relevant to your usage. You can find a few usecase tutorial videos below.

www.youtube.com/user/Joomlapolis/playlists

I want to be able to change a users access group when an administrator changes a CB field to show that they have given up their membership.

You'll need to act on the after update user and after user update triggers. You'd then need to condition against the fields value like the following example.

1: [var1_FIELD_NAME] Not Equal To [var3_FIELD_NAME]
2: [FIELD_NAME] Equal To 1

Using the above 2 conditions for example you're first making sure the field changed. You're then checking if it changed its value to 1. If this was a checkbox field for example it'd be checked. You can change the usergroups a user has using the Usergroups 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.

  • cgwhite
  • cgwhite
  • OFFLINE
  • Posts: 64
  • Thanks: 5
  • Karma: 0
6 years 11 months ago #298546 by cgwhite
Replied by cgwhite on topic Auto Action Documentation re: Conditions
How does anyone know that you have to use var1 and var3 to compare the field before and afterwards if there is no documentation? Are there other variables that one should know about?

1: [var1_FIELD_NAME] Not Equal To [var3_FIELD_NAME]
2: [FIELD_NAME] Equal To 1


Will this work from the backend? i.e. if an administrator changes something in the admin interface?

Regards,

Chris.

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

  • cgwhite
  • cgwhite
  • OFFLINE
  • Posts: 64
  • Thanks: 5
  • Karma: 0
6 years 11 months ago #298547 by cgwhite
Replied by cgwhite on topic Auto Action Documentation re: Conditions
Can you also give us some more information regarding the "Translate" "Format" and "Prepare" checkboxes.

What do they do and are they required in our case to change the Group.

Regards,

Chris.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 11 months ago #298562 by krileon
Replied by krileon on topic Auto Action Documentation re: Conditions

How does anyone know that you have to use var1 and var3 to compare the field before and afterwards if there is no documentation? Are there other variables that one should know about?

You can find what variables triggers provide by reviewing CBs source code or checking the below tutorial. We'll eventually make it easier to find trigger variables, but we currently don't have a solution beyond the below.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18358-using-cb-triggers

Will this work from the backend? i.e. if an administrator changes something in the admin interface?

Yes, the condition is just making sure the FIELD_NAME has changed its value from its previous value and that it has changed to 1.

Can you also give us some more information regarding the "Translate" "Format" and "Prepare" checkboxes.

Mouse over the info icons next to their labels as they explain what each does.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum