Link To Specific Page of Multi-page Form

By: Michael Clark | Asked: 12/08/2022
ForumsCategory: How-toLink To Specific Page of Multi-page Form
Michael ClarkMichael Clark asked 2 years ago
I'd like to create a simple text link in an html field that will go to a specific page in a multipage form. Targeting the #field_container doesn't work. How can I make this happen?
1 Answers
Best Answer
Victor Font answered 2 years ago
Michael, I don't think this is feasible with the way multi-page forms function. Have you ever examined the source code when using a multi-page form? Only the first page gets rendered as a page when the form is first loaded. All fields from any page beyond #1 are hidden. The #field_container wrappers don't exist until a subsequent page is generated through the form submit action that fires when you click the next button which is why you can't access them. To access anything in the HTML Document Object Model, it has to exist when the document.ready() event fires. This is just an out-of-the-box thought, but it may be possible to pass a parameter to the form that indicates the page to land on and then use conditional page breaks to skip to the targeted page. See this: https://formidableforms.com/knowledgebase/page-breaks/#kb-conditional-page-breaks.
Michael ClarkMichael Clark replied 2 years ago

Victor! As always, you come through with a thorough explanation, rich with technical information. Thank you for your insight.

I have noodled around a bit already and found that if - from within a form - one could code a link in an HTML field and target specific containers across pages, that'd be an additional way to implement any number of user-driven customizations (product configurators, evaluations, etc.).

Better yet, if there was a native button widget in the builder that was able to target pages *and* pass variables, that'd be killer. On a form page with name and email, have buttons that let the user choose which form page to go to next, and the button could also pass the values of the name and email fields to the selected page.

Multi-page forms have lots of fields and require a ton of clicking already, so I'm looking for as many ways to reduce the number of fields (hidden fields with [get param=''] are great, but it can get cluttered and be a bit of a chore to maintain, and with conditional page breaks, you still have to click the next page button. So two clicks where I'd prefer just one.

The great thing about Formidable is that there are a number of ways to achieve what's needed, and I'm sure with a little bit more experience design thinking, research, and testing, I can come up with a way to do the do. 🙂

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right