When using Charge to handle subscriptions is it possible to set the Charge Action (not the HTML form action parameter) dynamically based on which subscription option has been chosen in the form?

For instance, I have 3 different subscriptions available. Depending which subscription is chosen the member is to be put into a different member group. This was to be done using Charge's Actions.

But it appears that you must set the Action as a parameter on {exp:charge:form}.

Is it possible to set the Action dynamically within the form?

  • did you manage to do anything with this? I've got the same situation. I've now opted for a list of subscriptions and passing action data via the next but the above would be better.
    – JonnyT
    Feb 8, 2016 at 0:40
  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review Feb 8, 2016 at 7:32

1 Answer 1


If I'm not mistaken you can set the on_success parameter of the exp:charge:form tag based on a url segment. Then, you can create different Actions assigning different Subscriptions based on your needs.

I hope that's helpful.

  • I'm just seeing now that you're looking for something different here. I think I provided a solution similar to JonnyT. Sorry about that! Apr 12, 2016 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.