How to Create a Lead Magnet by Gating Content using Gravity Forms

Turn your WordPress content into a lead generation machine with GP Submit to Access. Gate entire pages, specific blocks, or any content via shortcode.

  1. Gating an Entire Page
  2. Gating a Specific Content Block
  3. Gating Content Anywhere with a Shortcode
  4. Your Content, Your Gate, Your Rules

Gating your best content—like a free ebook or exclusive video—in exchange for an email is a great way to generate leads. But the technical setup can feel like you’re building Fort Knox. The good news? All you really need is a simple, magical gatekeeper.

GP Submit to Access is the perfect solution for this, letting you exchange user form submissions for access to exclusive content or instant downloads, no technical wizardry required. Let’s check out the three main spells you can cast. 🧙

This article requires the Gravity Forms Submit to Access perk.

Buy Gravity Perks to get this perk plus 50 other premium Gravity Forms plugins!

View Plugin Buy Now

Gating an Entire Page

This method completely restricts access to a post or page until a form is submitted. After submission, they’re whisked away to the now-unlocked content, creating a VIP experience that feels like unlocking a hidden treasure.

Here’s how:

  1. Open your Spellbook and activate GP Submit to Access.
  2. Navigate to the page or post you want to lock.
  3. In the page settings sidebar, find Enable Submit to Access and toggle it on.
  4. Select your required form and click Save.

Voila! Your page is now form-protected. This is perfect for gating quiz results, delivering the first lesson of a video course, and much more!

An admin toggles on 'Submit to Access' in the page editor. A visitor then fills a form on the live page to unlock and view the content.

Pro-tips

Gating a Specific Content Block

This approach allows you to hide one or more blocks on a page. After a form submission, you can reveal content right on the same page, instantly giving them what they want with no extra clicks.

Here’s how:

  1. Select the specific block (or group of blocks) you want to hide on your page.
  2. In the block settings sidebar, find Enable Submit to Access and toggle it on.
  3. Select your required form and click Save.
WordPress page editor where a 'Download Now' block is selected and its block settings open on the right sidebar. The 'Enable Submit to Access' toggle is on, and a form has been selected in the 'Required Forms' field.

Now, your block (like a download button for a free e-book) remains a hidden treasure, revealed only after a user submits the form.

A visitor submits a form on a web page to reveal a clickable download button.

Gating Content Anywhere with a Shortcode

When you need maximum flexibility in tricky spots like a sidebar, footer, or inside your favorite page builder, reach for your magic wand: the [gpsa] shortcode.

It acts as an invisible cloak, keeping your content secret anywhere you can place a shortcode.

Here’s the basic shortcode:

[gpsa required_form_ids="1"]This secret content is now available to you.[/gpsa]

Let’s break down it down:

  • The [gpsa]...[/gpsa] tags create the gate. Any content between them is hidden.
  • required_form_ids="1" tells the gate which form is required. Just change the 1 to your form’s actual ID.
The WordPress page editor shows a text block next to a shortcode block. The shortcode block displays the [gpsa] shortcode used to gate the content.

Simply add this to a shortcode block wherever you need it, like hiding a discount code in a blog post. The shortcode is packed with other options!

A user then submits a form on a web page to display the hidden content.

Your Content, Your Gate, Your Rules

Remember, gating content isn’t about building walls. It’s about opening the right doors to your next leads and customers. 🪄

What awesome content will you gate first?

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.


This field is for validation purposes and should be left unchanged.
Grab a bundle of free Gravity Forms plugins

Enter your email and receive our most popular free plugins and snippets, plus access to hundreds of others.