thank you so much for this! Works like a charm... quick question: after the last form is submitted how would one get a thank you message to show. Currently, the last form submission reloads the page.
Currently, the last form submission reloads the page.
See the updated Fiddle. You can now populate the config.onFinalSuccess function with what you want to happen after the final form is submitted (i.e. return false; and then replace some other element on the page with text or what-have-you).
This is fantastic! Works great...still. How would you go about adding in a back button, I tried but wound up breaking a bunch of things. It would be great to be able to navigate back to a previous "section".
Thanks so much for this.Sanford Whiteman
Glad to see it still being of use, Ryley! It's an oldie, can tell because it's on jsFiddle and I use CodePen now.
Adding a "back" button would require considerable refactoring of the code, it would not be a simple tweak. What I can do for you right now is let you override the starting form ID by passing it in the hash.
So if your form stack is [169, 220, 238] a "back" button on form 238 can run
document.location.href="#220";
document.location.reload();
which will of course refresh the entire page, but will start them from form 220 when it loads.
I moved the code to this CodePen. If you go to https://s.codepen.io/figureone/debug/wpXrvx#220 you'll see you start from 220.