Skip to Content Skip to Menu

Question about auto action usecase

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
4 years 5 months ago #318898 by liaskas
Question about auto action usecase was created by liaskas
Hello...

we need to create an autoaction like the following...
Unfortunately we need to have many subscription plans for our usecase.
What we need is a confirmation that the autoaction will work with this "Is REGEX" operator.

GLOBAL
Type: Usergroup
User: Automatic
Access: Everybody

CONDITIONS
Field: Value
Custom Value: [var3]

Operator: Is REGEX Value: /23|24|21|22|19|20|17|18|15|16|13|14|11|12|6|10|8|7|4|5|2|3|1/

Field: Value
Custom Value: [var2]
Operator: Equal To Value: A

ACTION
Mode: Add Usergroup
etc...


Thank you in advance for your answer.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
4 years 5 months ago #318913 by krileon
Replied by krileon on topic Question about auto action usecase
It will work, but you need to make the REGEXP more strict as your current REGEXP will do partial matches. The below will strictly match the IDs you've supplied.

Code:
/^(23|24|21|22|19|20|17|18|15|16|13|14|11|12|6|10|8|7|4|5|2|3|1)$/

You don't need to use a REGEXP operator though. You can use an "Is In" or "Is Not In" operator then set the Delimiter field to a comma. You can then just supply a comma separated list of IDs without needing to worry about the REGEXP.


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

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

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
4 years 5 months ago #318922 by liaskas
Replied by liaskas on topic Question about auto action usecase
Thank you Krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum