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.

How to create a WP Page that can only be accessed after GF submission?

  1. Hello All,

    My end goal is to redirect the user to a "Thank You Download Page" that can only be accessed directly after submitting a GF form, i.e. it cannot be otherwise manually navigated to.

    I read that others have had similar requests in this forum, but I don't recall a conclusive anser. I know that I can place a d/l link in the Confirmation text of a form, but I'd realyl like to expand this to being able to load / redirect the user to an entirely new page.

    Thanks so much!
    Abdul

    Posted 11 years ago on Thursday February 14, 2013 | Permalink
  2. David Peralty

    There is no way to do this with Gravity Forms. You would have to use PHP to do this and change your WordPress theme. You could use PHP to detect what page a user comes from and then show the link. Or you could have some kind of code in the redirect URL that PHP picks up and knows if it is valid or not. Again, all of this, as far as I know, would have to be custom coded.

    Posted 11 years ago on Thursday February 14, 2013 | Permalink
  3. Thanks David. I'm not a PHP expert, so please excuse my question if it's dense, but would I check for HTTP_REFERER or might something be better suited?

    Also, if I added a token to the GF Confirmation Redirect URL, such as: http://www.domain.com/thank-you?formid=5 it would really need to be expiring, wouldn't it? Otherwise people would just share the link with the valid token.

    If you have the time, would you mind giving me just a bit more detail to a PHP solution?

    Thanks!
    Abdul

    Posted 11 years ago on Thursday February 14, 2013 | Permalink