Skip to content

Commit 4aff26f

Browse files
committed
now supporting checkboxes/radios with same IDs in different forms
1 parent 5b083b9 commit 4aff26f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gravityforms-multiple-form-instances.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ function gform_get_form_filter($form_string, $form) {
4949

5050
// define all occurences of the original form ID that wont hurt the form input
5151
$strings = array(
52+
"for='choice_" => "for='choice_" . $random_id . "_",
53+
"id='choice_" => "id='choice_" . $random_id . "_",
54+
"id='label_" => "id='label_" . $random_id . "_",
5255
"'gform_wrapper_" . $form['id'] . "'" => "'gform_wrapper_" . $random_id . "'",
5356
"'gf_" . $form['id'] . "'" => "'gf_" . $random_id . "'",
5457
"'gform_" . $form['id'] . "'" => "'gform_" . $random_id . "'",

0 commit comments

Comments
 (0)