Multiple Buttons on Form

Pass form data between multiple button actions in ChronoForms.

Overview

Using a redirect action between form events causes the form data to be lost.
Replace the redirect action with an event action to call the next event directly, which preserves the submitted form data for processing.

Answered
Connectivity v6
it itpates 27 Sep, 2018
I have a Chronoconnectivity v6 form that I want to enable users to either save the form input to the database, or go ahead and submit it for email. Two buttons with the same name but unique values, and a function switch that reads their values and calls functions depending on the value - one to redirect to the save event, and the other to redirect to the email event. The switch works flawlessly. However, I have as yet been able to figure out a way to carry the form data itself to these events.

When I point the form directly at the email event, it works fine. But when I point it at the switch in an event I named switch, which in turn redirects it to either the save or email event, the form data gets lost. I also tried to just calling the save or email functions from within the switch itself with no redirect, but same issue.

I've tried fiddling with custom php to gather form data and reset it, and tried fiddling with the save_to_session, and neither has worked for me. Anyone have any ideas or working examples?

he healyhatman 28 Sep, 2018
Answer
Well there you go, when you redirect you lose all your form data. Instead use {event:name}
This topic is locked and no more replies can be posted.