diff --git a/o2web/source/x_component_process_Xform/Number.js b/o2web/source/x_component_process_Xform/Number.js index e20e80d0e11c61a200c6288b95908a3218bb2010..e3b3d20d32f4f05bf5c70bbdf2062a502e4cc2ca 100644 --- a/o2web/source/x_component_process_Xform/Number.js +++ b/o2web/source/x_component_process_Xform/Number.js @@ -181,6 +181,9 @@ MWF.xApplication.process.Xform.Number = MWF.APPNumber = new Class({ this.validationMode(); }.bind(this)); }, + _computeValue: function(value){ + return (this.json.defaultValue.code) ? this.form.Macro.exec(this.json.defaultValue.code, this): (value || "0"); + }, getValue: function(){ var value = this._getBusinessData(); if (!value) value = this._computeValue();