diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index d30eb562feb..9568ec25828 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4949,7 +4949,10 @@ class Form
foreach ($formquestion as $key => $input) {
if (is_array($input) && !empty($input)) {
if ($input['type'] == 'hidden') {
- $more .= ''."\n";
+ $moreattr = (!empty($input['moreattr']) ? ' '.$input['moreattr'] : '');
+ $morecss = (!empty($input['morecss']) ? ' '.$input['morecss'] : '');
+
+ $more .= ''."\n";
}
}
}