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.

After submit, download a file

  1. Hey There,

    So I've tried to use query strings to redirect to the file directly, but of course, query strings are converted. ...not to mention the automatically ? after the initial URL.

    I'm trying to figure out a way to prompt a download once the form as been submitted. This is so that leads can be captured for each downloadable brochure.

    It's almost like a redirect to file instead of URL... and of course I need to be able to pass in which file. I'm doing that via a short code 'field_values'

    Posted 7 years ago on Tuesday October 11, 2011 | Permalink
  2. You can use a confirmation redirect, and send them to a custom PHP template on your site. That template (or WordPress page) will read the query string coming in, then redirect the submitter to the proper file. The PHP template can be created to send headers that force the browser to download the proper file.

    You would have to build the php template and read the incoming value, but other than that, sending the headers to the browser is not too hard.

    If you don't mind having them click, your could put links to the downloadable files right in the displayed confirmation as well, but that's one additional step for them.

    A 3rd option is a download manager for WordPress. There are a couple at the repository.

    Posted 7 years ago on Wednesday October 12, 2011 | Permalink
  3. bizdevresults

    I am also interested in accomplishing the same thing. I have series of blog posts that would offer potential clients an e book. They would then fill out a form and then it would upon confirmation, send them to a wordpress developed landing page with the download link. The key is how to populate that download link so that I don't have to create a form for each download.

    Was wonderinghow and if you were able to solve the problem Thanks!

    Posted 7 years ago on Monday February 6, 2012 | Permalink