GRAVITY PERKS RELOAD FORM
What does it do?
The Reload Form perk allows you to include a special link in your AJAX-enabled form’s confirmation message which, when clicked, will reload the form to allow additional submissions without a page refresh. It also provides the ability to automatically reload the form after a specified number of seconds.
GRAVITY PERKS RELOAD FORM
I would strongly advise checking out the demo of this functionality to better understand the different pieces referenced in the rest of this documentation.
How does it work?
When the form is initially loaded, a copy of the original form HTML is stored in a Javascript variable. After the form is submitted and the special reload link in the confirmation message is clicked, the stored form HTML is used to replace the confirmation message and reload the form. Now the form is ready to be submitted again!
GRAVITY PERKS RELOAD FORM
How do I enable this functionality?
There are two steps for setting up this functionality for your form.
- Make sure your form is AJAX-enabled. For instructions on embedding your Gravity Form and enabling AJAX for your form, read here.
- Include the
{reload_form}
merge tag in your confirmation message wherever you would like the reload link to appear.
The {reload_form}
merge tag is available in the Confirmation Message’s Insert Merge Tag dropdown field. Open the dropdown and you will find the “Reload Form Link” option under the “Custom” option group. Selecting this option will automatically insert the {reload_form}
merge tag into the Confirmation Message textarea. GRAVITY PERKS RELOAD FORM
Reload Form Merge Tag
Once inserted, you will notice that the merge tag includes some additional text: Your Link Text
. Update this text to whatever you would like the reload link to display. GRAVITY PERKS RELOAD FORM
Default {reload_form:Your Link Text}
Customized {reload_form:Submit Another Request}
Automatically Reloading Your Form
It is also possible to automatically reload your form after a specified number of seconds have passed. To enable this functionality, navigation to your form settings and scroll down until you come to the “GP Reload Form” section. GRAVITY PERKS RELOAD FORM
Reload Form Form Settings
Click the “Automatically Reload Form” option to enable this functionality then specify how many seconds should elapse before the form is automatically reloaded.