Skip to content

Commit 5b48838

Browse files
committed
now properly supporting gform_field_values, 1.0.8
1 parent 50fce2b commit 5b48838

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gravity Forms: Multiple Form Instances
22
=====================================
33

4-
### Version 1.0.7
4+
### Version 1.0.8
55

66
-----
77

gravityforms-multiple-form-instances.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Allows multiple instances of the same form to be run on a single page when using AJAX.
66
* Author: tyxla
77
* Author URI: https://github.com/tyxla
8-
* Version: 1.0.7
8+
* Version: 1.0.8
99
* License: GPL2
1010
* Requires at least: 3.0.1
1111
* Tested up to: 4.3
@@ -48,7 +48,7 @@ function gform_get_form_filter($form_string, $form) {
4848
}
4949

5050
// this is where we keep our unique ID
51-
$hidden_field = "<input type='hidden' name='gform_field_values' value='' />";
51+
$hidden_field = "<input type='hidden' name='gform_field_values'";
5252

5353
// define all occurences of the original form ID that wont hurt the form input
5454
$strings = array(
@@ -83,7 +83,7 @@ function gform_get_form_filter($form_string, $form) {
8383
"trigger('gform_post_conditional_logic', [" . $form['id'] . "," => "trigger('gform_post_conditional_logic', [" . $random_id . ",",
8484
'gformShowPasswordStrength("input_' . $form['id'] . '_' => 'gformShowPasswordStrength("input_' . $random_id . '_',
8585
"gformInitChosenFields('#input_" . $form['id'] . "_" => "gformInitChosenFields('#input_" . $random_id . "_",
86-
$hidden_field => $hidden_field . "<input type='hidden' name='gform_random_id' value='" . $random_id . "' />",
86+
$hidden_field => "<input type='hidden' name='gform_random_id' value='" . $random_id . "' />" . $hidden_field,
8787
);
8888

8989
// allow addons & plugins to add additional find & replace strings
@@ -101,4 +101,4 @@ function gform_get_form_filter($form_string, $form) {
101101

102102
// initialize the plugin
103103
global $gravity_forms_multiple_form_instances;
104-
$gravity_forms_multiple_form_instances = new Gravity_Forms_Multiple_Form_Instances();
104+
$gravity_forms_multiple_form_instances = new Gravity_Forms_Multiple_Form_Instances();

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: tyxla
33
Tags: gravity, form, multiple, gravity forms
44
Requires at least: 3.0.1
55
Tested up to: 4.3
6-
Stable tag: 1.0.7
6+
Stable tag: 1.0.8
77
License: GPLv2 or later
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

@@ -25,6 +25,9 @@ This plugin addresses this issue, allowing multiple forms to be displayed on the
2525

2626
== Changelog ==
2727

28+
= 1.0.8 =
29+
Now properly supporting `gform_field_values`.
30+
2831
= 1.0.7 =
2932
Tested with WordPress 4.3.
3033

0 commit comments

Comments
 (0)