PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Multipage Form with Unique URLs

  1. 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.

    Posted 11 years ago on Monday December 3, 2012 | Permalink
  2. David Peralty

    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;
    }
    Posted 11 years ago on Monday December 3, 2012 | Permalink
  3. ZeadsDead
    Member

    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

    Posted 11 years ago on Saturday February 23, 2013 | Permalink
  4. ZeadsDead
    Member

    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

    Posted 11 years ago on Saturday February 23, 2013 | Permalink
  5. Thank you for your contribution here:
    http://www.gravityhelp.com/forums/topic/multi-page-navigation

    Posted 11 years ago on Sunday February 24, 2013 | Permalink

This topic has been resolved and has been closed to new replies.