
Allows multiple instances of the same form to be run on a single page when using AJAX.
Author: | Nikunj (profile at wordpress.org) |
WordPress version required: | 4.5 |
WordPress version tested: | 5.4.6 |
Plugin version: | 1.0 |
Added to WordPress repository: | 24-09-2019 |
Last updated: | 27-03-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 84 |
Rated by: | 10 |
Plugin URI: | |
Total downloads: | 13 127 |
Active installs: | 900+ |

Click to start download
|
Gravity Forms: Multiple Form Instances is used in conjunction with the awesome Gravity Forms plugin.
Usually, when you use multiple Gravity Forms with AJAX enabled on the same page, this causes issues with multiple form submission & error display, infinite loading and other issues.
This plugin addresses this issue, allowing multiple forms to be displayed on the same page without any issues.
FAQ
Installation & Configuration
This plugin does not need any customization.
Simply install and activate it, and it will do its magic with your Gravity Forms.
How It Works
In order for the magic to work, various occurences of the form ID are replaced with a random ID when rendering the form. This allows for multiple instances of the same form to be submitted without having the issue of submitting form B when submitting form A.
If a form has already been submitted, the submitted random ID will be preserved and used for the next submissions as well, otherwise a new unique ID is generated.
Customization (actions & filters)
The plugin uses the default gform_get_form_filter Gravity Forms filter for performing the replacement.
Additionally, the plugin offers the following actions & filters:
gform_multiple_instances_strings
$strings (array). An array of find => replace pairs. Occurences of “key” will be replaced with the corresponding “value”.
$form_id (int). The original form id.
$random_id (int). The new, randomly generated form id.
This filter allows you to modify the default strings that will be replaced. The keys are the original strings, and the corresponding values are the strings that keys will be replaced with.
ChangeLog