By default GP Reload Form will provide the ability to add a link that when clicked will reload a Gravity Form automatically. It also has support for reloading a form after a specific time in seconds.

We recently had a Gravity Perks user request support for allowing a Gravity Form in a modal to automatically reload when the modal was closed.

So for example, a user visits your site and fills out part of a Gravity Form or there are validation errors on the Gravity Form in a modal, then the user exits the modal where the form is located, you may want to “reset” the form back to its default state.

We have now added support for this feature with GP Reload Form. This article will show you how to automatically reload a Gravity Form when a modal is closed!

Identify the trigger for the modal. This can be something you set yourself or that is already set by the plugin you are using.

Identify the callback close event for the modal. Each modal solution will have a callback that fires when the modal is closed. You just need to add the snippet to that callback.

For plugin solutions such as Popup Maker, you aren’t handling the initialization manually so you instead identify the modal close event being used by the plugin then apply the snippet above to it. In the case of Popup Maker, there is a close event called pumAfterClose so you would need to find the equivalent event in the modal plugin you are using.

We hope you find this useful!

Did this help you out? Let us know in the comments below!

Did this resource help you do something awesome with Gravity Forms? Then you'll absolutely love Gravity Perks;
a suite of 29+ essential add-ons for Gravity Forms with support you can count on.