Skip to content

Commit

Permalink
now supporting checkboxes/radios with same IDs in different forms
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Dec 8, 2014
1 parent 5b083b9 commit 4aff26f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gravityforms-multiple-form-instances.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ function gform_get_form_filter($form_string, $form) {

// define all occurences of the original form ID that wont hurt the form input
$strings = array(
"for='choice_" => "for='choice_" . $random_id . "_",
"id='choice_" => "id='choice_" . $random_id . "_",
"id='label_" => "id='label_" . $random_id . "_",
"'gform_wrapper_" . $form['id'] . "'" => "'gform_wrapper_" . $random_id . "'",
"'gf_" . $form['id'] . "'" => "'gf_" . $random_id . "'",
"'gform_" . $form['id'] . "'" => "'gform_" . $random_id . "'",
Expand Down

0 comments on commit 4aff26f

Please sign in to comment.