Gravity Forms Iframe Add-on #5 in Forms
A Gravity Forms add-on to embed a form in an auto-resizing iframe on external sites.
by Cedaro · github.com/cedaro/gravity-forms-iframe · website
★ 154stars
3.1kcomposer installs
28forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/cedaro/gravity-forms-iframe/archive/refs/heads/develop.zipAlso on Packagist as cedaro/gravity-forms-iframe:
composer require cedaro/gravity-forms-iframeDeclares an update source (https://github.com/cedaro/gravity-forms-iframe), so updates arrive through the plugin's own updater.
From the readme
Gravity Forms Iframe Add-on
Embed a Gravity Form in an iframe on any site.
The typical process to embed a Gravity Form on a site where the plugin isn't installed requires:
1. Developing a custom page template with necessary code to output form scripts and styles.
2. Creating a new page in WordPress.
3. Inserting the form shortcode in the new page.
4. Manually writing an iframe tag with the page permalink and giving it a static height.
With the Gravity Forms Iframe add-on, just enable a setting to allow the form to be embedded and copy the code snippet. That's it. As a bonus, the iframe automatically resizes whenever the form height changes -- for instance, when fields are shown or hidden due to conditional logic.
Features
Selectively enable embedding for individual forms.
Auto-resizing iframes.
Override embed templates in a theme or child theme.
Override settings via the embed src query string.
Extends the Gravity Forms add-on API to seamlessly integrate with the WordPress and Gravity Forms interface.
Protocol-relative URLs for embedding on secure sites (both sites need SSL).
Settings
The form title and description can