diff --git a/group.php b/group.php index 143a7cede9b..0c295038efb 100644 --- a/group.php +++ b/group.php @@ -757,7 +757,7 @@ if (isset($conditions) && is_array($conditions)) { if (!isset($endzone)) {$endzone="";} - echo "\t\t\tif (type == 'radio')\n" + echo "\t\t\tif (type == 'radio' || type == 'select-one')\n" ."\t\t\t\t{\n" ."\t\t\t\tvar hiddenformname='java'+name;\n" ."\t\t\t\tdocument.getElementById(hiddenformname).value=value;\n" diff --git a/survey.php b/survey.php index e1e7b3b286c..99e010873b6 100644 --- a/survey.php +++ b/survey.php @@ -711,7 +711,7 @@ if (isset($conditions) && is_array($conditions)) { if (!isset($endzone)) {$endzone="";} - echo "\t\t\tif (type == 'radio')\n" + echo "\t\t\tif (type == 'radio' || type == 'select-one')\n" ."\t\t\t\t{\n" ."\t\t\t\tvar hiddenformname='java'+name;\n" ."\t\t\t\tdocument.getElementById(hiddenformname).value=value;\n"