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.
 
        - Gating an Entire Page
- Gating a Specific Content Block
- Gating Content Anywhere with a Shortcode
- 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!
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:
- Open your Spellbook and activate GP Submit to Access.
- Navigate to the page or post you want to lock.
- In the page settings sidebar, find Enable Submit to Access and toggle it on.
- 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!

Pro-tips
- Customize Access Messages for clearer instructions or added personality.
- Set Access Duration to control how long visitors can view the gated content.
- Still rocking the Classic Editor? No problem! It still works the same.
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:
- Select the specific block (or group of blocks) you want to hide on your page.
- In the block settings sidebar, find Enable Submit to Access and toggle it on.
- Select your required form and click Save.

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

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- 1to 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.](https://gravitywiz.com/app/uploads/2025/10/gpsa-gate-with-shortcode-backend-1024x346.png)
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!

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?
 
         
         
        