@lonepc You enable ajax in the shortcode [gravityforms id="##" ajax=“true”]
AJAX shouldn’t affect any of the addons, conditional logic, or calculations. AJAX just allows the form to be submitted without the need for a page refresh. You can also just do some testing on a separate page before moving to production.
While I understand you’d appreciate a modified version of that snippet it’s actually a complicated problem, I’m a bit hung up on it, and frankly I’m just another GForm user trying to help out. Not trying to be rude but I’m not being paid to do any of this work and I have a full time job and 4 children. lol
Essentially you have to somehow change the $userStartedForm variable to false when the user clicks the submit button but before the form starts to refresh the page. This is where I’m struggling a bit, because in all of my testing what happens is this:
- Start using form.
- $userStartedForm is set to true.
- Click Submit or Next Page
- Page Refreshes
- $userStartedForm is set to false.
I need to figure out a way to interrupt the page refresh and change the $userStartedForm variable. Unless someone else has an idea of how to do this I’m a bit stuck… and therefore you’re stuck as well.