Wondering how to require email to download files in WordPress? This guide will show you how to create a form for your WordPress gated content!
Approximate read time: 5 minutes
How does doubling subscribers on an email list sound?
Well, thatās the power of requiring an email to download files after form submission in WordPress (aka using gated content). And it can be set up on a WordPress website in minutes to start growing your email list today.
So, this post will show how to create a beautiful form that converts readers into subscribers through WordPress downloadable files.
Letās get started.
Why use WordPress for downloads and email capture?
If valuable content is posted on a WordPress website, some people want access.
And getting an email before downloading in WordPress is the perfect way to start a connection with website visitors.
So why not combine the two?Ā And thatās where gated content comes in.
Gated content is like putting a bouncer in front of a famous club. People can get in, but only if they clear the bouncer first.
Getting more users with a form is fantastic for lead generation, email marketing, or a more extensive list. And there are various file management tools to use: Google Drive, Microsoft OneDrive, or even WordPress!
So, I'll show how to download a PDF after form submit with WordPress plugins. Check out our list of the best WordPress gated content plugins if curious.
Letās get to the guide.
Want to put a download button on your website? Learn how to link a button to a form in WordPress
How to require an email address to download a file in WordPress
Formidable Forms is the best WordPress form plugin.
Its drag and drop form builder and advanced features like Formidable Views handle anything. And that includes creating a form for your gated content on your WordPress site.
So, grab the form maker, get it installed and activated, then weāll start with the guide. If you need any help getting set up, check out our Knowledge Base docs!
There are four easy steps to use WordPress to download files after form submission:
Step 1: Create a file upload form
First, we need a way to upload your files and get them into your subscribers' hands.
So, create a form for content upload. Head to Formidable ā Forms and click Add New inside your WordPress dashboard.
Next, choose Blank Form and give the form a name. The plugin opens the drag and drop form builder to customize the form. Only two simple fields are necessary for the upload form: Text and File Upload.
Drag the fields to the builder, then click the Text field to change the field options. Then, change the label to āFile Name,ā and check the Required and Unique boxes.
Next, drag the File Upload field (file block) to add it.
Then click Update to save the changes to the form and the progress so far.
The last thing is to protect the content so not everyone can see it.
So, go to Settings ā Form Permissions and check the box next to Protect all files uploaded in this form and Prevent search engines from indexing uploads.
Click Update to save the changes, and itās on to the file upload!
Step 2: Upload the file and create a View
To manage/monitor file downloads, click the Entries tab at the top of the page, then click Add an Entry.
The file upload form will open, so type a file name and select the file type. Last, click Submit, and the file is ready.
Now, itās time to create a way for the file to display.
And Formidable Views is the perfect tool for the job. Views is an application builder that takes your entry data and displays it on the front end of a website.
So, in Formidable, click Views.
Click Add New in the Views section, choose Classic for the template, and give the View a name.
Select Protected Files form in the View editor as the Use Entries from Form choice.
Click the + inside the View, which opens the View editor. Off to the right side, there's a panel containing the fields from the form and the numbers next to them.
Use these to make it easy to open the file. So, to create a download link in WordPress, type the following in the Text Editor to add a download link or file URL:
<a href=ā[File Upload #]ā>Open [File Name #]</a>
So, for example, the editor would look like this:
Once it's customized, click Update view to save the changes.
Next, add a filter to the Advanced Settings of the View to make sure everything shows:
Last, copy the shortcode on the View Editor's left side. It should look something like this:
[display-frm-data id=X]
Save this for the next step.
Step 3: Create a signup form
Last, we need a form for our website visitors to enter their email that will act as the download form.
It can be a simple contact form, email capture form, or anything that collects an email.
So, go to Formidable ā Forms and click Add New to create one. Click Blank Form and give the form a name, then click Create.
Add Name and Email form fields to keep things simple. Also check the Required box for the email, so the visitor canāt complete it until the submit information is entered.
Feel free to add any other fields to your form before you click Update to save the changes.
Next, click Settings and scroll down to the On Submit section. Set the dropdown to Show Message. Then, under the Messages section, paste the code from the first step into the text box.
Click Update to save the changes. Now, whenever a user fills it out, they can click the link to open your gated content or see the download in progress!Ā Or send the link to the WordPress file download in the confirmation email.
Step 4: Display the signup form
The last step is to show the signup form to the world so people can subscribe!
So, head to the page or post and add a new WordPress block. Next, search Formidable and click Formidableās WordPress block to add it. Then, choose the signup form from the dropdown menu.
Last, click Update, and the form is live and ready. Now, when a user fills out the form to download a file, they'll get the file!
Are you ready to require email to download files in your forms?
Gated content is a massive opportunity for email lists.
Its power to collect email addresses before directing the visitor to a digital download manager or attachment is fantastic.
And this post showed how to create gated content on WordPress the easy way, with Formidable Forms. Plus, the plugin integrates with popular email services like Mailchimp and ActiveCampaign to make email marketing simple.
So, donāt waste time! Grab the file upload form maker now!
Or, if youāre wondering how to make a file downloadable in WordPress, check out this guide on creating a WordPress download PDF button!
And follow us on social media for more WordPress tips and tutorials: Facebook, Twitter, and YouTube.
Craig says
This doesn't test that the email is valid, I know I've done this before with your help pointing to the correct article, but months later can't find it....
Would be great to have an automated solution for this repetitive task.
stephywells says
Hi Craig, Sorry we missed your comment! Here are the instructions to verify an email address . Instead of showing another form, you can show the files instead.
sueldos.rrhh@eldorado.com.uy says
Thank you so much for the step by step instructions
Jason Earrame says
Good article. I have been using Forms to collect information for years and have settled on Formidable for the last few years as the only one I use. Collecting email addresses is a must and really simple to do.
Eric Schlange says
this is a cool tool.
Ruben Hiemstra says
Thanks for this blog, learned a lot!
Devon Page says
I've only just started to use Formidable and the functionality, and supporting documentation has been excellent. Thank you for this guide.
srwells says
Thanks so much for the kind words! Welcome to the Formidable Family.
quistuipater says
Excellent. I have used this for a couple of projects and it's a great marketing solution.
srwells says
Glad you are liking it!
Zackarias Aitchison says
This is great!
Nathan says
Another similar option that I've used (which also works great) is to use the "Send Email" action, which allows you to include a file attachment an automated email back to the person filling out the form. I like this option because you are guaranteed that the email address will be a valid one, or else they won't receive the email!
srwells says
Great suggestion. As long as you have a reliable email system set up so you can be confident emails are going through, this is a great option.
mamopictures says
This is a nice option. But how do you attach the file that has been uploaded via the "download manager form"? And if I send a mail with the file, can I do it without showing the view to the user?
srwells says
You can send the uploaded files as an email attachment without a view. Or you can include the View shortcode right in the email. This is a built in feature of our pro version. If you need help with this, please reach out to our support, and we are happy to assist.
Simon says
For multiple white papers: I'd like to not ask the visitor to fill out the form if they have done before, but still I'd like to get a notification when they download additional files.
srwells says
Hi there, Thanks for your question. It sounds like you're looking for more of a members-only area?
Noureddine Yous says
Hi
I am very interested in the functionality described in this post. However it does not seem to be available in the free version of the plugin. Do I have to upgrade in order to get it?
Thanks for a quick reply
srwells says
Hi there,
Yes, the above tutorial does require features only included in the paid versions of the plugin. You would need to upgrade in order to create this setup using Formidable Forms.
Sebastian says
Do I need to create multiple forms/views to offer different files to be downloaded (some page, other pages)? Or can the filename be passed via an url parameter and use one form? Otherwise if I have many files, creating many forms is not a dynamic solution...
srwells says
Sure, you can upload multiple files in the same form. It'll just need an extra filter if you don't want to show all the files at once.
Tom says
Would I get access to this functionality with the basic version of the plugin or would I need the pro?
srwells says
Hi Tom,
The tutorial above does require Views to work, so you would need at least the Forms + Views Basic package in order to execute the above functionality.
Jonathan Roth says
Hi - does anyone know how/if this would work on substack?
srwells says
Hi Jonathan,
I'm not very familiar with substack so I'm not 100% sure, but I think you could possibly integrate the two services using Zapier. There isn't currently a native substack integration.
Ciara says
Hi there, can this be used to download different files based on the user's selection?
Basically I have a site with about 22 PDFs, and I want it to download the correct PDF based on which one they have selected from a dropdown, or based on which page they are on. Is this possible?
srwells says
Hi Ciara,
Based on my understanding of your use case, I think you could probably make this work, but you may want to reach out to our support team with a few more details to be sure. It may be possible you'll need a membership plugin to achieve what you are after.
Amanda Bronscheer says
Something is wrong for me. i cannot choose PFD file ... Is that possible ??
srwells says
Hi there, there may be a few reasons for this. Could you please contact our support team and we can help you out with that?
Catrin Le Rendu says
Hi
I have purchased Formidable Pro as i couldnt do the above steps using the free version. All I am trying to do is Require Email To Download Files in WordPress, and this guide then says I need to use 'views' to do this and this seems to require another upgrade?! Is that correct? I have spent so long trying to do this today.
Thanks
srwells says
Hi Catrin,
Sorry for the delay in getting back with you. Formidable Views are only included in the Plus and higher packages, so for the instructions on this page, you would need the Plus package or higher.
Emily says
This is a great tutorial! Is there a way to go back in to the form you initially created, and swap out the download? Or is it necessary to create an entirely new form?
Jonathan A says
Hey Emily.
Thank you for reaching out today. Thank you or your kind words.
Yes, you can edit the entry and upload another file; as long as you keep the same filename, it should work.
Best