diff --git a/www/experiments.php b/www/experiments.php index 386e63bcfe..d13126c887 100644 --- a/www/experiments.php +++ b/www/experiments.php @@ -349,11 +349,13 @@ function observationHTML($parts) } elseif ($exp->expvar && !$exp->expval && $textinput) { if ($experimentEnabled) { $placeholderEncodedVal = htmlentities(''); + $textinputvalue = $exp->textinputvalue ? $exp->textinputvalue : ""; + $fullscreenfocus = $exp->fullscreenfocus ? "true" : "false"; $out .= <<
- +
EOT; @@ -582,7 +584,7 @@ function refreshExperimentFormState(){ } } } - if( input && !(keyval[1] === 'on' && form.querySelectorAll("[type=checkbox][name='" + keyval[0] + "']")) ){ + if( input && !(keyval[1] === 'on' && form.querySelectorAll("[type=checkbox][name='" + keyval[0] + "']")) && keyval[1] !== "" ){ input.value = keyval[1]; input.setAttribute('data-hydrated', 'true'); }