Skip to content

Commit

Permalink
now properly supporting gform_field_values, 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Aug 12, 2015
1 parent 50fce2b commit 5b48838
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gravity Forms: Multiple Form Instances
=====================================

### Version 1.0.7
### Version 1.0.8

-----

Expand Down
8 changes: 4 additions & 4 deletions gravityforms-multiple-form-instances.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Allows multiple instances of the same form to be run on a single page when using AJAX.
* Author: tyxla
* Author URI: https://github.com/tyxla
* Version: 1.0.7
* Version: 1.0.8
* License: GPL2
* Requires at least: 3.0.1
* Tested up to: 4.3
Expand Down Expand Up @@ -48,7 +48,7 @@ function gform_get_form_filter($form_string, $form) {
}

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

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

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

// initialize the plugin
global $gravity_forms_multiple_form_instances;
$gravity_forms_multiple_form_instances = new Gravity_Forms_Multiple_Form_Instances();
$gravity_forms_multiple_form_instances = new Gravity_Forms_Multiple_Form_Instances();
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: tyxla
Tags: gravity, form, multiple, gravity forms
Requires at least: 3.0.1
Tested up to: 4.3
Stable tag: 1.0.7
Stable tag: 1.0.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 1.0.8 =
Now properly supporting `gform_field_values`.

= 1.0.7 =
Tested with WordPress 4.3.

Expand Down

0 comments on commit 5b48838

Please sign in to comment.