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.

Form submiting, not leaving screen

  1. I have a form which uses a redirect. If you choose to upload a file, it works great and displays the text confirmation page. If you choose the second option, to download an eval, it serves up the eval and sends the notifications but the form remains on the page. I wonder if this is because I am pointing to a binary download file instead of a post or page? Can someone take a look and let me know what you think? The form is at: http://visual-integrity.com/forms/try-it/ and you'll see the problem if you choose the 1st option (download an eval).
    Thanks!

    Posted 10 years ago on Monday May 21, 2012 | Permalink
  2. So on the eval option you are saying that you are linking to a physical file? If that's the case it will most likely just pop the downloader and start downloading the file (this could vary slightly from browser to browser). If you need this to go somewhere else, then I'd suggest you place that link on page or a link in the email notification to the download.

    Posted 10 years ago on Monday May 21, 2012 | Permalink
  3. Hey Rob - Thanks for the quick reply. We are linking directly to a physical file and that's exactly what it's doing when someone hits the "Submit" button - popping the downloader. That's fine with us, but we want the form to go away. Now, people download the file and still see the form on the screen, so they hit submit again and we get multiple requests... and they probably get multiple downloads.

    On your suggestions,
    - we don't what to put the link on a page because then it's public and people can bypass registration
    - I would love to put it in an email but we have a different email for each download (7 or 8 of em). If you support multiple email notifications in a redirect, that would be cool - do you? I'm happy to send you my redirect file if you think it would work...

    Thanks!
    jean

    Posted 10 years ago on Monday May 21, 2012 | Permalink
  4. Jean, you should be able to do this via our new conditional logic shortcodes:

    http://www.gravityhelp.com/documentation/page/Shortcodes#Conditional_Shortcode

    Posted 10 years ago on Monday May 21, 2012 | Permalink
  5. Thanks Rob. I'm not sure how to do this based on the doc. Would I replace all of my physical download links in my redirect file with conditional statements that would send a custom user notification email? Any chance you could make an example for me based on this? http://pastebin.com/nWdXYSEC
    Thanks for any guidance!! jean

    Posted 10 years ago on Monday May 21, 2012 | Permalink
  6. You would not need a function anymore. Your redirect would be the same redirect and/or confirmation. On the confirmation you can use conditional shortcode to show different responses based on the selection you decide is important or different.

    You would use the merge tags to decide on how your confirmation and/or notification message is determined and written. In your notification email you would use the conditional shortcode and merge tags to show a "download link" with simple HTML to create the appropriate links and then apply each individual link to the selection they have chosen. You can get these options via the merge tag drop down.

    Backup your function code (or you can just access it again here via your provided link) and try it out. See how far you can get and let me know if you get stuck. One thing I didn't think of until now, is how you create your links in the email - you may not want to do exe files (in case they get spammed), but perhaps, shortened bit.ly urls could work?

    Posted 10 years ago on Monday May 21, 2012 | Permalink
  7. Ok Rob - Thanks! Give me a day to play... I might be back :)

    Posted 10 years ago on Monday May 21, 2012 | Permalink