Buy Now
Sign in

Multiple Buttons on Form

itpates , September 27 at 17:25
Answered
I
itpates
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?​
​​
healyhatman
How are you "redirecting" ?
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
I
itpates
{redirect:EVENT}
healyhatman
Well there you go, when you redirect you lose all your form data. Instead use {event:name}
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman