Is it possible to create a multipage form where each "page" of the form creates a unique URL? This would be instead of the "#" in the URL.
For example, /form/page1/, /form/page2/, /form/page3/
Thanks.
Is it possible to create a multipage form where each "page" of the form creates a unique URL? This would be instead of the "#" in the URL.
For example, /form/page1/, /form/page2/, /form/page3/
Thanks.
You probably can't have pretty permalinks like that, as they wouldn't be able to copy and paste them for use later anyways. But here's what a developer told me the other day:
The trick here is to use the gform_form_tag hook and add the extra query string item with the current page number. The following code snippet should do the trick.
Just place the correct page URL.
add_filter("gform_form_tag", "form_tag", 10, 2);
function form_tag($form_tag, $form){
$form_tag = preg_replace("|action='(.*?)'|", 'action="YOUR_PAGE_URL?my_page=' . GFFormDisplay::get_source_page($form["id"]) . '"', $form_tag);
return $form_tag;
}
David,
I am trying to build a 5 page GF where I can allow the user to navigate to any page of the form. If I have unique URLs for each page then I could simply put links in the sidebar.
Nevertheless, you stated unique URLs are not possible and you provided an alternative solution. When I searched your site and google for the mentioned tag - gform_form_tag - I was unable to find an explanation about it - what is it? what does it do? what is it used for?
I am new to GF and was hoping your solution above would solve my problem. My problem is two fold:
1. create a form that allows user to navigate to any page of the form
2. have the ability to track the user via Google Analytics so I create a sales funnel and find out which page the users drop out at most. (so I can optimize the form).
Can you give more explanation about your solution above as I am hoping this solved my problem.
I also found this solution, is it similar to your suggestion above? http://gravitywiz.com/multi-page-navigation/
Thanks
Ben
David,
Also, how do the two aforementioned solutions compare to the one mentioned here: http://www.gravityhelp.com/forums/topic/link-to-one-page-of-a-multi-page-form
Thanks
Ben
Thank you for your contribution here:
http://www.gravityhelp.com/forums/topic/multi-page-navigation