Multiple Form Instances Add-on for Gravity Forms

Plugin Banner

Multiple Form Instances Add-on for Gravity Forms

by Nikunj Hatkar

Download
Description

Multiple Form Instances Add-on for Gravity Forms 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.

  1. Install Multiple Form Instances Add-on for Gravity Forms either via the WordPress.org plugin directory, or by uploading the files to your server.
  2. Activate the plugin.
  3. That’s it. You’re ready to go!
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.

Plugin needs an update

By martinjstephens on July 15, 2024

This plugin still performs its core function but will break Gravity Forms conditional logic on all your forms. Needs updating please.

Works great, fixed my issue.

By CHEWX on December 20, 2023

Works great, fixed my issue.

Very useful, particularly for basic forms (just a few incompatibilities)

By emangham on January 12, 2022

This plugin is fantastic and incredibly helpful. Thanks for solving a lot of problems!

Breaks Gravity Forms Conditional Logic

By tom.andersen on September 3, 2021

IT took a while but we figured out that this plugin breaks Gravity Forms Conditional Logic. It conflicts. All forms were display:none and are thus hidden. Deactivating the plugin fixed things. Gravity Forms Conditional Logic uses display none initially on forms then removes the hidden conditionally.

Instantly solved my problem

By pheyonagh on February 9, 2021

I didn't know I was going to need this plugin but it's a miracle it exists. Saved me a massive potential headache!

One Page In Mulitple Gravity Form Working Fine.

By Chirag Radadiya (chiragradadiya0) on October 9, 2025

This Plugin Is use For If you have Mulitple Gravity Form in One page. Working Good and excellent.

Great job

By tqhung85 on March 16, 2020

I have no idea why gravity forms does not work for multiple form instances by default. Luckily I found this plugin that solved the issue. Thanks to the plugin's author for their great job!

Works flawlessly

By stajan on January 15, 2020

I have the same subscribe form in a modal and in the footer. This would not have been possible without this plugin!

Perfect

By dendmitruk on December 14, 2019

Seems you saved my day. Thanks a lot!

Does the job

By jonsakas on November 3, 2019

It would be great if Gravity Forms worked properly and we did not need a plugin for this. Gravity Forms should just integrate this code into their own. The plugin does what it says it does.

1.2

  • TWEAK: Added Broken Image Fallback plugin promotion notice.

1.1

  • TWEAK: Performed a full code review to meet WordPress.org coding standards.
  • TWEAK: Updated plugin description and readme for clarity and compliance with WordPress.org guidelines.
  • Compliance: Changed plugin display name to “Multiple Form Instances Add-on for Gravity Forms” to remove trademark from the beginning.

1.0

Initial version.

Back to top