diff --git a/o2web/source/x_component_process_Xform/Select.js b/o2web/source/x_component_process_Xform/Select.js index e982697181bef6adce09d1a38bf279800bb957b0..58d2046e7db95aeaccdfe8ef5b20c744d94d3d68 100644 --- a/o2web/source/x_component_process_Xform/Select.js +++ b/o2web/source/x_component_process_Xform/Select.js @@ -322,16 +322,20 @@ MWF.xApplication.process.Xform.Select = MWF.APPSelect = new Class({ return {"value": value, "text": text}; }, getInputData: function(){ - var ops = this.node.getElements("option"); - var value = []; - ops.each(function(op){ - if (op.selected){ - var v = op.get("value"); - if (v) value.push(v); - } - }); - if (!value.length) return null; - return (value.length==1) ? value[0] : value; + if( this.readonly || this.json.isReadonly ){ + return this._getBusinessData(); + }else{ + var ops = this.node.getElements("option"); + var value = []; + ops.each(function(op){ + if (op.selected){ + var v = op.get("value"); + if (v) value.push(v); + } + }); + if (!value.length) return null; + return (value.length==1) ? value[0] : value; + } }, resetData: function(){