What does it do?
GP Live Preview provides an easy method for previewing your forms as they will appear on the live site. No longer do you need to create a new post, configure the Gravity Forms shortcode, and publish the page to see how the form will look on the frontend. Just click the handy “Live Preview” option in your Gravity Forms toolbar.
GP Live Preview also provides several features that make testing your form a breeze and debugging just shy of enjoyable.
- Preview Forms on the Live Site
Stop wasting time setting up pages to see how your forms will look on the live site. One-click preview link right on the Gravity Forms toolbar.
- Unrequire Required Fields
Save time testing your Gravity Forms by making required fields optional in preview (also skips reCAPTCHA).
- Preview with AJAX Enabled
Gravity Forms’ default preview doesn’t support AJAX. Live Preview supports AJAX out-of-the-box.
- Debug Hidden Fields
Show all hidden fields in your form without having to remove classes or change field types. Makes debugging a breeze.
- Disable Notifications
Stop notifications from sending when the form is submitted from a preview.
- Speed up Gravity Form Development Time
Working with Gravity Forms a lot? This perk is guaranteed to save you a ton of time.
- Seamless, Easy-to-use UI
Integrates directly with the Gravity Forms toolbar. A single click activates the preview.
- Automatic Updates
Get updates and latest features right in your dashboard.
- Awesome Support
We’re here to help! And we mean it.
How do I enable this functionality?
We’ll assume you’re running Gravity Forms 1.9 or greater.
- Install and activate Gravity Perks.
- Install and activate GP Live Preview.
- That’s it! The “Live Preview” link will now automatically display in the Gravity Forms toolbar.
Live Preview Options
By default, Live Preview will provide a preview of your form on the frontend of your website. Live Preview provides several additional options to customize how your form preview will be displayed and function.
Select the “Enable AJAX” option to load your form with AJAX enabled.
There are several types of “hidden” fields in Gravity Forms. You have the actual Hidden field type, the Hidden Product field type, and also the ability to hide fields via the Custom CSS Class field setting via the “gf_hidden” and “gf_invisible” CSS Ready Classes (learn how these classes impact Gravity Forms Product fields).
Select the “Show Hidden” option to make your “hidden” fields visible in preview. Working with hidden fields can be tricky. This feature allows you to readily confirm that a hidden field is populated with the expected value. And now you’ll save hours of debugging time.
Filling out field after required field can rot your brain. Save a huge amount of time by automatically “unrequiring” required fields. The field will still appear required on the frontend; however, on submission, the required validation will be ignored. This means you can leave any field blank and only fill out the fields you are currently testing.
An added bonus! GP Live Preview now also bypasses reCAPTCHA.
Prevent your inbox from blowing up with notifications by disabling them when the the form is submitted through the preview. This is especially useful if you have notifications set to send to multiple recipients.
Support for Core Preview Link
GP Live Preview adds the “Enable AJAX”, “Show Hidden” and “Unrequire” options to the core Preview Link as well. These options work exactly as they do in Live Preview. The only difference is that they will be enabled for the core Preview page.
Why doesn’t the preview match my site’s theme?
GP Live Preview uses the Page template
page.php to display the live preview. If your theme’s Page template doesn’t output
the_post(), the preview will not match your site’s theme.
In order to resolve this, you have two options:
- Edit the
page.phptemplate in your site’s theme to output the standard
the_post()inside the HTML of the page.
- Specify the page template to use with GP Live Preview using the gplp_preview_template hook.