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
103103global $ 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 ();
0 commit comments