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.

Set URL on forms

  1. ciznerguy
    Member

    Is there a way to manually set what the URL will be for forms, and stages within forms? I need to do this for SEO purposes. I have two forms linked together and need to be able to set custom urls based on which form and which stage you are on, as well as the confirmation page. GF always seems to add something like #gf_2 to the end of the url.

    Thanks in advance

    Posted 8 years ago on Friday July 13, 2012 | Permalink
  2. David Peralty
    Administrator

    The URL of your form is the URL of the page you put it on. Each page appends the #gf_1, #gf_2 and the like so that the script can show the right fields. You can't change this.

    Posted 8 years ago on Friday July 13, 2012 | Permalink
  3. ciznerguy
    Member

    Can you set separate URLs for the stages? like site.com/form/stage-1 & site.com/form/stage-2? sorry if this is an obvious question.

    Posted 8 years ago on Friday July 13, 2012 | Permalink
  4. David Peralty
    Administrator

    The #gf_1, #gf_2 are the stages, and you can't change those as our script needs them to figure out which fields to show.

    Posted 8 years ago on Friday July 13, 2012 | Permalink
  5. ciznerguy
    Member

    Two questions to clarify. Thanks

    1. It seems as though the #gf_2 stand for the gravity form ID not the stage.

    2. Can I change the ID? And when i pass data from one form to another via a query string it adds that to the URL. Can that be removed?

    Posted 8 years ago on Friday July 13, 2012 | Permalink
  6. David Peralty
    Administrator

    The gf_# has to do with forms with multiple pages. You can't change this.

    The ID of a form also cannot currently be changed. What do you mean when you say it adds it to the query string?

    For example, if I have two forms: form 1 and form 2. Form 1 is 2 pages, and Form 2 is two pages.

    If I am on form one, the URL would be something like:
    http://site.com/form-one/

    If I have the confirmation redirect from form 1 to form 2 and include data from Form 1, my URL would look like:

    http://www.site.com/form-two/?input1=data&input2=data2

    On the second page of form 2 my url should look something like:
    http://www.site.com/form-two/#gf_2 or #gf_3...etc.

    Does that answer your questions? Again, you can't change those details because they would break Gravity Forms.

    Also, there are more important things with regards to SEO than the query strings or hash symbols. Your page title, structure, valid code, and potentially even your page load speed will be more important than these specific parts of the URL structure.

    Posted 8 years ago on Friday July 13, 2012 | Permalink