🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 22, 2026

How to Gate a Download Manager Package Behind a Gravity Forms Form

GravityExtra
How to Gate a Download Manager Package Behind a Gravity Forms Form

A free download is one of the oldest ways to earn a visitor’s attention: a checklist, a template, a white paper. The catch is that the download should buy you something in return, usually an e-mail address and a reason to follow up. If you run Download Manager, the popular free plugin for managing files, you probably have the files in place. What is missing is a good way to ask for something first, and a way to give each visitor a link that does not travel around the internet forever.

This tutorial shows how to gate any Download Manager package behind a Gravity Forms form with the Gravity Forms Download Manager Integration Premium Add-on, how to hand out one-time links, how to deliver packages after a payment, and what to check before you go live.

See the Gravity Forms Download Manager Integration add-on

Why gate a download with a form

  • Lead capture: the form collects a name, an e-mail address and consent, and every entry is a lead you can follow up.
  • Qualification: ask one or two questions, such as company size or role, and use conditional logic to treat the answers differently.
  • Control: an expiring link cannot be shared in a forum or a chat for months. If someone wants the file again, they come back to the form.
  • Proof: because the link belongs to an entry, you can see who received which file and whether they downloaded it.

Why the usual shortcuts fall short

You can hide a file behind a page that shows a form and then redirects to the file. The problem is that the address of the file or the thank-you page can be copied. A visitor who finds it never needs the form again. You can also protect the package with a password and e-mail the password, but then everyone who gets it can use it, and it never expires.

A better pattern is the one that Download Manager already uses for its own locks: after a lock is solved, the plugin creates a temporary key for that package, with a limit on how often it can be used and a time limit. The add-on does exactly that, but the lock that is solved is a Gravity Forms submission.

Step 1: install the add-on and check the requirements

Install and activate the add-on next to Gravity Forms 2.9 or newer and Download Manager 3.3.62 or newer. Open Forms, Settings, Download Manager and enter your license key. The page tells you which version of Download Manager is active. If something is missing, a clear notice tells you what to install.

Step 2: build the form

Create a normal Gravity Forms form. For a lead magnet three fields are enough: name, work e-mail and a consent checkbox. Keep it short, because every extra field costs conversions. Write a confirmation message that thanks the visitor by name, for example by using the first name merge tag. You do not need to add anything for the link yet.

If you also want to send the link by e-mail, add a notification to the e-mail field of the form and put the merge tag for the download link in its message. We come back to it below.

Step 3: switch on the Gravity Forms lock of the package

Open the package in the Download Manager editor and go to Lock Options. Switch on the Gravity Forms lock, choose your form and decide what happens after a valid submission. Then set the limits of the link. One use and one day is a good default for a lead magnet. For a large file, allow two or three uses, because a browser that resumes an interrupted download asks for the file again.

The Gravity Forms lock card in the lock options of a Download Manager package: the form, what happens after a valid submission, uses per link and the link lifetime in minutes
The Gravity Forms lock sits next to the other locks of the package editor: pick the form, the delivery and the link limits.

Save the package and open its page in a private window. The download button is gone and your form is there instead. That is the whole setup for a gated package.

Step 4: see what the visitor sees

The visitor fills in the form without leaving the page. After a valid submission the confirmation appears in place of the form, with a Download button and the end date of the link. A click on the button starts the download. A second click, or a link that is older than the limit you set, gives the standard invalid link message of Download Manager.

Two other delivery modes exist. With the redirect mode the file starts to download as soon as the form is sent, which feels instant. With the merge tag mode nothing is shown automatically and you decide where the link goes, for example only into an e-mail. In both cases the link is created for the entry, so it is personal.

Step 5: send the link by e-mail

Many marketers want the link in the inbox, because it proves the address is real. Add a notification to the form, send it to the e-mail field and use the download link merge tag in the message. The tag prints the plain address, and another tag prints a ready HTML link with the package title. A third tag prints the end date, so the e-mail can say that the link is valid until a certain day.

Merge tag What it prints
{wpdm_download_url} The link of the first package issued for the entry (plain address, ready for a link or a button)
{wpdm_download_url:ID} The link of the package with that id, empty when none was issued for it
{wpdm_download_link} The first link as a ready HTML link with the package title
{wpdm_download_links} A list with one link per package, for confirmations and e-mails
{wpdm_package_title} The title of the first package (also with a colon and an id)
{wpdm_expires} The end date and time of the first link (also with a colon and an id)

If the visitor should get the file by e-mail and also by a click on the confirmation, give the link two uses.

Deliver packages from any form

The lock is perfect for one package per page. Sometimes you want a form that offers several downloads, or a form that is not tied to a package page at all, such as a request form, a checkout or an event registration. For that the add-on has a feed.

Open the settings of the form, choose Download Manager and add a feed. Choose fixed packages, or let the visitor choose from a checkbox or drop down field. The add-on can fill that field for you with all published packages, with the packages of one category, or with the categories. Each chosen package gets its own link, and a category delivers every published package inside it.

The Deliver packages feed settings of a Gravity Forms form: packages chosen by the visitor from a checkbox field filled with the packages of one category, uses per link, link lifetime and access roles
The feed of one form: which packages go out, how long each link lives and how often it can be used.

The feed respects the access roles of each package by default. If a package is meant for editors only, a visitor who sends the form does not get a link for it, and the entry note tells you why. Drafts, packages without a file and packages that have expired are skipped as well, so a mistake in the form can never hand out something you did not want to publish.

Deliver after payment

Selling a download? Use the feed together with a payment add-on. In the payment feed you tick the post payment action that waits for the payment before the Download Manager feed runs. Until the payment is complete no link exists. When the payment is received the add-on creates the link, logs it and makes it available to the payment completed notification, so the receipt e-mail can carry the download.

Know who downloaded what

Every link is written to the entry as a note and as a record. The entry view has a Download Manager box that lists each link with the package, its state and the number of downloads. The notes say when a link was issued and when it was used. This closes the loop that a plain download page cannot: you see, per lead, whether the file was fetched.

A Gravity Forms entry page with entry notes for each issued link and for the download, and the Download Manager box that lists every link with its state and download count
Every link is logged: entry notes say what was issued and downloaded, the side box shows each link and its state.

Checklist before you go live

  1. Open the package page in a private window and confirm that the button is replaced by the form.
  2. Send the form with a real address and confirm that the e-mail arrives and the link works once.
  3. Try the link a second time and confirm that it is refused.
  4. Open the plain address of the package and confirm that it stays locked.
  5. If the package is limited to some roles, check the page as a visitor and as a member.
  6. Look at the entry and read the notes.

Tips for a better lead magnet

  • Say in the form what the visitor gets and when. A short line above the form that names the file is enough.
  • Name the file in the button. The add-on does this for you: the button says Download and the package title.
  • Keep links short-lived for valuable files and longer for general guides. A week is fine for a newsletter bonus.
  • Use conditional logic to ask a follow-up question only when it matters.
  • Use the entries for a follow-up. A visitor who requested the file but never downloaded it is a good reason for a friendly reminder.

Frequently asked questions

Do I need to change my Download Manager templates?

No. On a package page the add-on replaces the download button with the form. In lists of packages the normal button stays and opens the Download Manager window, which then shows the form.

Does it work with packages that have a password?

Yes. The package keeps the Download Manager window and both ways to unlock it are shown there. Solving any one gives a link.

What if the visitor does not have the right role?

Then Download Manager shows its own login or permission message and the form is not shown. A forged submission gets no link.

Can I use the same form for several packages?

Yes. Each entry unlocks the package whose page or window showed the form.

Which versions are supported?

Gravity Forms 2.9 and newer, tested on 3.1 and 2.9, and Download Manager 3.3.62 and newer, tested on 3.3.73.

A gated download should feel like a fair trade: a short form for a useful file. With a lock that creates a personal, expiring link for every entry, you keep the trade fair for the visitor and useful for you.

See the Gravity Forms Download Manager Integration add-on

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr