diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php
index 2f5b56ea2..475ad3c14 100644
--- a/gulliver/system/class.xmlform.php
+++ b/gulliver/system/class.xmlform.php
@@ -2345,10 +2345,10 @@ class XmlForm_Field_Checkbox extends XmlForm_Field
// $res = "" . $this->label ;
return $res;
- } elseif ($this->mode === 'view') {
- if ($this->labelOnRight) {
+ } elseif ($this->mode === 'view') {
+ if ($this->labelOnRight) {
$html = "" . $this->label . '';
- } else {
+ } else {
$html = "";
}
// if($this->hint){
@@ -2493,7 +2493,14 @@ class XmlForm_Field_Submit extends XmlForm_Field {
// return 'label .'\' disabled/>';
return "style}\" class='module_app_button___gray {$this->className}' id=\"form[{$this->name}]\" name=\"form[{$this->name}]\" type='submit' value=\"{$this->label}\" " . (($this->onclick) ? 'onclick="' . htmlentities ( $onclick, ENT_COMPAT, 'utf-8' ) . '"' : '') . " />";
} elseif ($this->mode === 'view') {
- return "style};display:none\" disabled='disabled' class='module_app_button___gray module_app_buttonDisabled___gray {$this->className}' id=\"form[{$this->name}]\" name=\"form[{$this->name}]\" type='submit' value=\"{$this->label}\" " . (($this->onclick) ? 'onclick="' . htmlentities ( $onclick, ENT_COMPAT, 'utf-8' ) . '"' : '') . " />";
+ // return "style};display:none\" disabled='disabled' class='module_app_button___gray module_app_buttonDisabled___gray {$this->className}' id=\"form[{$this->name}]\" name=\"form[{$this->name}]\" type='submit' value=\"{$this->label}\" " . (($this->onclick) ? 'onclick="' . htmlentities ( $onclick, ENT_COMPAT, 'utf-8' ) . '"' : '') . " />";
+ $sLinkNextStep = 'window.open("' . $owner->fields['__DYNAFORM_OPTIONS']->xmlMenu->values['NEXT_STEP'] . '", "_self");';
+ $html = '';
+ $html .= 'name . ']" ';
+ $html .= 'name="form[' . $this->name . ']" ';
+ $html .= 'type="hidden" value="'. $this->htmlentities ( $this->label, ENT_QUOTES, 'utf-8' ) .'" />';
+ return $html;
} else {
return $this->htmlentities ( $value, ENT_COMPAT, 'utf-8' );
}