ok here is what I have..
I have 11 plans, and on each one of them I have two CB fields: plan_type and plan_status
Plan_type is set to 1,2,3,4,5,6,7,8,9,10, or 11 depending on which plan
Plan_status is set to either 0,1 --> that is active or not active.
The two fields are radio-buttons.
Inside each plan I set the two CB fields ..
1 and deactivate to 0, 1 and deactivate to 0
2 and deactivate to 0, 1 and deactivate to 0
---- etc.
on the auto action; I have the following:
Plan Active
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] IS REGEX /1|2|3|4|5|6|7|8|9|10|11/
2: [var2] Equal To A
Note: I did not use the "action" part here because the field are set correctly to their respective values when a user subscribe.
Plan Expired
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] IS REGEX /1|2|3|4|5|6|7|8|9|10|11/
2: [var2] Not Equal To A
Action
Field: cb_plan_status
Operator: Set
Value: 0
Translate Value: No
Field: cb_plan_type
Operator: Set
Value: 0
Translate Value: No
So, with these settings, the two fields are correctly set to their respective values when activate, but when deactivate they return null. that is I don't see the Not Active radio button selected. on both fields.. they become all not-selected.
Maybe, because these two fields are radio-buttons?! It may work with checkboxes? I don't know !!
For now, i will settle for this till you find a fix or I find a workaround
Thanks