We had an issue last year where we wanted a field pre-populated when someone "registers" (not "renews") and you gave us the following solution:
Can't without using CB Auto Actions and conditioning more specifically. For CBSubs Fields it's checking for the subscription to become active by any means. For CB Auto Actions usage you'd use the below with a Field action.
Plan Active
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Equal To A
3: [var7] Equal To N
var7 for that trigger is $reason, which can have the following values.
N = new subscription
R = renewal
U = update
So the conditions would be making sure the supplied plan id is active and that it's a new subscription. This should fit your needs.
Everything was working great but I double checked all of them recently and I noticed there were 3 members that fit the auto action criteria but never had the field pre-populate. It's very strange that it only happened to 3 people (out of hundreds). We can't figure out why. Wondering if you had any suggestions for looking into this?
Were those 3 recent subscribers? If not it could've been a bug at the time they subscribed that has since been fixed if recent subscribers are working fine. Is there anything in common with those 3? Same payment gateway and everything? Anything different between those 3 and users that worked?
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.
Strange, I'm not sure what to make of it unless a fatal error occurred before the action fired. Any fatal errors in your server error log or CBSubs History Log around the time User 2 subscribed?
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.
If those users upgraded to the plan from their subscription tab instead of during registration that might explain it. You may need to change the following condition.
FROM:
3: [var7] Equal To N
TO:
3: [var7] Is REGEXP /N|U/
That should allow it to match new subscriptions and upgrade subscriptions. Another option is to match every state except renewal as follows.
3: [var7] Not Equal To R
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.