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

Gravity Forms Simple Download Monitor Premium Add-on Setup Guide

Updated 7 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Step 1: install and connect
  4. Step 2: add a feed to a form
  5. Record a download for an existing download
  6. Create a new download
  7. What happens after a submission
  8. Merge tags and notifications
  9. Use with payments
  10. For developers
  11. Privacy and security
  12. Troubleshooting
  13. Questions

Video walkthrough

Gravity Forms Simple Download Monitor Setup Guide: Lead Magnet Download Links & Merge Tags
Video setup guide: Gravity Forms Simple Download Monitor Watch on YouTube

The Gravity Forms Simple Download Monitor Premium Add-on connects your Gravity Forms forms to your own self-hosted Simple Download Monitor plugin. When a form is submitted, the add-on can record a download against a download you already keep in Simple Download Monitor, or build a brand new download from the entry, and then hand you the download link, id, title and count as merge tags. Everything stays on your own WordPress site: there is no outside service and nothing to configure beyond the two plugins you already run.

What you need

You need Gravity Forms 2.5 or newer, the free Simple Download Monitor plugin active on the same site, and a GravityExtra licence key for this add-on. Simple Download Monitor stores each download as its own record, keeps the file behind a counted download link, and tracks how many times each file has been fetched. This add-on writes to those same records, so your downloads, your counts and your logs stay exactly where Simple Download Monitor expects them.

Step 1: install and connect

Upload and activate the add-on, then open Forms, Settings, Simple Download Monitor. Paste your licence key and activate it. Below the licence box you will find the add-on settings: the download link style, the two defaults for counting and logging, and a button that confirms the Simple Download Monitor plugin is running.

The Simple Download Monitor settings screen in Gravity Forms: the licence box, the download link style, the count downloads and log grants defaults, and the Check Simple Download Monitor button
The settings: the download link style and the defaults every feed inherits for counting and logging.

The Download link style decides how the {sdm_download_url} merge tag is built. Query link is the standard Simple Download Monitor handler, for example /?smd_process_download=1&download_id=12, and it always works. Pretty link uses the download slug, for example /download/the-slug/, when the download has a slug and your permalinks allow it. Leave Count downloads on if you want each recorded grant to add to the Simple Download Monitor download count, and leave Log grants on to record each grant in the Simple Download Monitor log. Press Check Simple Download Monitor to confirm the plugin is active; the check changes nothing.

Step 2: add a feed to a form

Open the form you want to connect, go to Settings, Simple Download Monitor, and add a feed. A feed is a single rule that runs when the form is submitted. Give it a name, then choose what it should do.

A Simple Download Monitor feed: the action to record an existing download, the download id mapped from a form field, the count and log options, the step and the condition
A feed set to record a download for an existing download, with the download id taken from a form field.

Record a download for an existing download

Choose Record a download for an existing download when the file already lives in your Simple Download Monitor library. In the Download box, type the download id, for example 12, or drop in the merge tag of a field that holds the id. A drop down of your files works well: let the choice value be the download id, and the add-on reads that value even when the merge tag shows the choice label. Turn on Add to the download count to bump the Simple Download Monitor count, and set Add to count if each submission should count for more than one. Turn on Record the grant in the Simple Download Monitor log to keep a row for every submission. If you want to record a grant without touching the count, set Add to count to 0.

Create a new download

Choose Create a new download when each submission should produce its own file in Simple Download Monitor. Map a form field to the new download title and another to the new download file URL, which must start with http or https; a File Upload field or a Website field is ideal. You can also store an optional description. When the form is submitted, the add-on creates the Simple Download Monitor download, publishes it, and returns its new id and link, ready for the merge tags below.

This mode suits workflows where a visitor contributes the file themselves. A guest author uploads an article, a vendor submits a price sheet, a partner shares a brochure, and each submission becomes a proper Simple Download Monitor download that you can feature anywhere Simple Download Monitor is used, with its own counted link. Because the download is a normal Simple Download Monitor record, you can edit it later, add a thumbnail, move it into a category, or protect it exactly as you would a download you made by hand. The feed simply saves you the manual step of creating the record for every submission, and keeps the title and file tidy by stripping stray tags and checking the URL before anything is stored.

What happens after a submission

When the form is submitted, every feed whose condition matches runs in the same request, straight against your local Simple Download Monitor library. Because the work is local, there is no network call, no queue and nothing to retry. The add-on writes an entry note, updates the download count when you asked it to, and shows a Simple Download Monitor box on the entry with the recorded download, its link and its current count.

A Gravity Forms entry with the Simple Download Monitor box: the recorded download, its link and its download count, with the entry note
The entry: the field values, the add-on note, and the Simple Download Monitor box with the download, its link and its count.

The entry list adds two bulk actions as well. Record Simple Download Monitor download (skip done) records any selected entries that were not recorded yet, and Record Simple Download Monitor download again records the selected entries once more, which is handy after you fix a download id or add a file.

Merge tags and notifications

After a feed runs, five merge tags become available on the entry. {sdm_download_url} is the download link, {sdm_download_id} is the download id, {sdm_download_title} is the download title, {sdm_download_count} is the current download count, and {sdm_download_token} is an opaque receipt for the grant that you can store or show without exposing anything sensitive. Each tag also accepts a feed id, for example {sdm_download_url_3}, when a form has more than one feed and you want a specific one.

Put {sdm_download_url} in the confirmation so the visitor sees the download link the moment they submit, and in the admin notification so your team gets it too. The add-on also adds two notification events you can choose when you build a notification: Simple Download Monitor: the download was recorded, and Simple Download Monitor: the download could not be recorded. Use the first to email a ready-to-use download link, and the second to alert yourself when a download id was wrong or a file URL was missing.

Use with payments

If your form takes a payment through a Gravity Forms payment add-on, open the feed and turn on Record the download only when payment is completed. The feed then waits until the payment is confirmed, so a download is recorded only for a paid order. This is the clean way to deliver a paid file: the visitor pays, the payment clears, and the download link reaches them through the confirmation or a notification.

For developers

The add-on exposes a small set of hooks. The gform_sdm_download filter runs just before a feed records or creates a download, so you can change the download id, the step, the title or the file, or cancel the feed for an entry by returning a non-array. The gform_sdm_recorded action fires after a download is recorded or created, with the full result, and gform_sdm_failed fires when a feed could not run. The gform_sdm_download_logged action fires when a grant is logged, so you can forward it elsewhere. If your setup stores downloads differently, the gform_sdm_store filter lets you replace the whole store with your own callable, which also makes the add-on fully testable without touching real data.

Privacy and security

Nothing leaves your site. The add-on only reads and writes Simple Download Monitor records through WordPress, so your files, counts and logs stay under your own control. When grant logging is on, the download id, the submitter and the entry IP address may be written to the Simple Download Monitor log, which the add-on notes in the WordPress privacy guide. The grant receipt token is produced from your site salts, so it cannot be forged from a copied database alone.

Troubleshooting

If a feed reports that no download id was found, check that the Download box holds a whole number or a field whose value is a download id. If it reports that a download was not found, confirm the id exists in Simple Download Monitor and is not in the trash. If a new download is not created, check that the title and the file URL are both mapped and that the file URL starts with http or https. If the Check Simple Download Monitor button says the plugin is not active, install and activate the free Simple Download Monitor plugin and try again.

Questions

Does this send files or data anywhere? No. The add-on works only with your local Simple Download Monitor plugin, and makes no outside request. Can one form record several downloads? Yes, add as many feeds as you need, each with its own condition. Can I count a submission as more than one download? Yes, set Add to count on the feed. Does it work with the Simple Download Monitor download logs? Yes, leave Log grants on and each grant is recorded. With the add-on in place, every Gravity Forms submission can hand the visitor exactly the right Simple Download Monitor download, counted and logged, without a single line of code.

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