這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Gravity Forms: Multiple Form Instances Add On

外掛說明

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.

安裝方式

  1. Install Gravity Forms: Multiple Form Instances 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.

使用者評論

2021 年 9 月 3 日
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.
2020 年 3 月 16 日
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!
閱讀全部 9 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Gravity Forms: Multiple Form Instances Add On〉的開發相關工作。

參與者

變更記錄

1.0

Initial version.