🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Download Manager Integration Premium Add-on Setup Guide

Updated 9 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. How the links work
  5. The Gravity Forms lock
  6. The three ways to deliver the link
  7. Safe by design
  8. The Deliver packages feed
  9. After payment
  10. Package and category choices
  11. Merge tags
  12. Logging
  13. Limits you should know
  14. Frequently asked questions
  15. Does the visitor need an account?
  16. Can one form unlock many packages?
  17. Can I send the link by e-mail only?
  18. What happens when a link expires?
  19. Does it work with the other locks of Download Manager?
  20. Is anything sent to another service?
  21. What is removed on uninstall?

Video walkthrough

Gravity Forms Download Manager: Gate Downloads Behind a Form with One-Time Links (Free Plugin)
Video tutorial: Gravity Forms Download Manager Integration Watch on YouTube

The Gravity Forms Download Manager Integration Premium Add-on connects your Gravity Forms forms to the free Download Manager plugin from wordpress.org. It does two jobs. First, it adds a Gravity Forms lock to every package: the visitor fills in your form and gets a personal, expiring download link. Second, it adds a feed that can send packages as expiring links from any form, also after a payment. Every link belongs to one entry and is logged on it.

What you need

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer (tested on 3.1 and on 2.9).
  • The free Download Manager plugin, version 3.3.62 or newer (tested on 3.3.73).
  • An active Gravity Extra license key for this add-on.

If Download Manager is missing or too old, a notice appears on the Gravity Forms screens and in the feed settings, and the add-on does not hand out anything.

Install and activate

  1. Upload the add-on zip in Plugins, Add New, and activate it.
  2. Go to Forms, Settings, Download Manager and enter your license key.
  3. Open the same page again to check that Download Manager is reported as active, and read how many packages already use the Gravity Forms lock.

On the same page you find the option to count downloads per entry. It is on by default. When it is on, each download that starts with a link of this add-on raises the download count of the entry and adds an entry note.

The add-on never builds its own download address. It asks Download Manager for an expiring key with its own function for temporary download links, and Download Manager stores the key, checks it on every request and refuses it when it is used up or too old. That is why the links work from another browser or device, for example from an e-mail, and why the direct address of the package stays locked.

Each link has two limits. Uses per link says how many times the link can start a download (one by default, up to one hundred). Expires after says how many minutes the link stays valid (1440 by default, which is one day). Both are set per package for the lock and per feed for the feed.

The Gravity Forms lock

Open any package in the Download Manager editor and go to Lock Options. A new card, Gravity Forms lock, appears next to the Download Manager locks. Switch it on and choose the form.

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.
  • Form: any active Gravity Forms form. It can be a short lead form, a survey or a registration form.
  • After a valid submission: show a download button under the confirmation message (the default), start the download at once, or only use the merge tags.
  • Uses per link and Link expires after: the limits of the link that each visitor gets.

Save the package. On the package page the download button is gone and the form is shown in its place. The form is an AJAX form: the visitor sends it without leaving the page, and the confirmation appears where the form was. In a list of packages, for example a shortcode, the usual button stays and opens the Download Manager window, which now holds the form.

  • Button under the confirmation: the visitor sees your confirmation message and a Download button with the end date. If your confirmation already contains the link merge tag, no second button is added.
  • Start the download at once: the confirmation redirects to the link, so the file starts to download. This uses the first use of the link. If you also e-mail the link, give the link two or more uses.
  • Merge tags only: nothing is shown automatically. Put the link in the confirmation message or in a notification yourself.

Safe by design

The form carries a signed marker that names the package and the form. The signature is checked on the server when the entry is saved, and the lock settings of the package are read again at that moment. A visitor who edits the marker gets an entry but no link. The visitor must also be allowed to download the package: Download Manager is asked whether a key may be issued for the package and for this visitor, which covers the published state, the lock switch and the access roles.

Situation What the add-on does
The package has another lock (password, e-mail, captcha or social) The package page keeps the Download Manager window, where all locks sit side by side; solving any one of them gives a link, as in Download Manager
The package is limited to some roles A visitor without the role gets no form, only the Download Manager login or permission message; a forged submission gets no link
The form is deleted, inactive or the licence is off The package stays locked and shows a short message; nothing is handed out
The entry is marked as spam No link is issued and a note says so
The package is a draft, has no file, has expired, is not yet available or its stock limit is reached No link is issued and a note says why
Someone opens the package address directly Download Manager refuses it, because the package is locked
A link is used more often than allowed, or too late Download Manager answers that the link is invalid

The Deliver packages feed

The feed works on any form. Open the form settings, choose Download Manager and add a feed. The feed runs when the entry is saved, or after payment when you use it with a payment add-on.

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.
  • Packages to deliver: fixed packages chosen in a list, or packages chosen by the visitor from a field. The field can hold package ids or category ids; for a category the feed delivers every published package of it, up to twenty.
  • Choices of the field: let the add-on fill the field with all packages, with the packages of one category, or with the categories. The values are the ids. The choices are filled when the form is shown and again when it is sent.
  • Uses per link and Link expires after: the limits of each link of this feed.
  • Respect the access roles of each package: on by default. A package is only delivered when the person who sent the form may download it by its Download Manager access roles.
  • Conditional logic: run the feed only when the entry matches your rules.

Every package gets its own link. A package that is a draft, has no file, has expired, is not yet available, has reached its stock limit or is not allowed for the visitor is skipped, and an entry note names the package and the reason. Ids typed into a free text field are cleaned first: only whole numbers count, so junk never reaches the package list.

After payment

The feed supports delayed processing. With a payment add-on, tick the post payment action Deliver Download Manager packages only when payment is received in the payment feed. The links are then created when the payment is completed, logged on the entry and available to the payment completed notification. Before that nothing is issued.

Package and category choices

Any Drop Down, Radio Buttons, Checkboxes or Multi Select field can be filled with Download Manager content. Either choose the field in a feed and pick what to fill it with, or give the field the CSS class gfwpdm-packages (packages) or gfwpdm-categories (categories) in the form editor. Only published packages with a file are offered, so drafts and empty packages never show up. For checkboxes the inputs are rebuilt to match the choices.

Merge tags

Use these tags in confirmations and notifications. They read the links that were issued for the entry, so they work in the confirmation of the same submission, in notifications and when notifications are resent.

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 no link exists for the entry, for example because the package was skipped or the payment is not complete, the tag prints nothing.

Logging

Each link leaves an entry note with the package, the number of uses and the end date. Each download adds another note and raises the download count of the link and of the entry. The entry view has a Download Manager box that lists every link with its title, its state (valid with uses left, used or expired) and its downloads.

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.

The entry also carries entry meta you can use in your own code: the link records, the list of package ids and the number of downloads. Two actions let developers react: gfwpdm_link_issued and gfwpdm_package_downloaded.

Limits you should know

  • The free Download Manager plugin delivers one file per package. Packages with several files need the paid extension of Download Manager to download as a whole.
  • A browser that resumes an interrupted download uses another request, which counts as another use of the link. Give links two uses if your files are large.
  • Gravity Forms must be active when a package uses the Gravity Forms lock. Without it the package stays locked.
  • Download Manager has a setting that skips some locks for logged-in users. It applies to its own locks only, not to this lock.

Frequently asked questions

Does the visitor need an account?

No. The lock works for visitors and for logged-in users. Whether a visitor may download a package at all is decided by the access roles of the package in Download Manager.

Can one form unlock many packages?

Yes. Several packages can use the same form. Each entry unlocks the package whose page or window showed the form.

Yes. Choose Merge tags only for the lock, or use a feed, and put the merge tag in a notification. Give the link as many uses as you need.

Download Manager answers that the link is invalid. The visitor can send the form again to get a new one, and the old entry keeps its notes.

Does it work with the other locks of Download Manager?

Yes. Other locks stay active. Because Download Manager treats locks as alternatives, a visitor who solves any one of them gets a link.

Is anything sent to another service?

No. Links, entries and notes stay on your site. The add-on only contacts the Gravity Extra license server to check your key.

What is removed on uninstall?

The add-on removes its options and its entry meta. Packages, entries and notes stay as they are.

Still need help?

Our support team answers tickets every day, usually within a few hours.

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