Creating “multi-step” dynamic forms (without redirects?)
-
Just wondering if there is a recommended way for creating a multi-step form, where the next form steps are added based on the previous input. So say my initial form asks
“What are you interested in?”
A) Fruit
B) Meat[Submit]
Then the lead is either displayed the Fruit form or the Meat form.
I could just hide/show the fields, but we would like to capture data along the way, rather than wait until the entire set of forms are complete.I am currently building this out with multiple forms that “redirect” to the same page and then using twig if statements to display the form based on the lead’s answers to previous form submissions.
I’m wondering if there is a cleaner, suggested way to do it?
Thanks!
- You must be logged in to reply to this topic.