diff --git a/js/forms-json-utils.js b/js/forms-json-utils.js index 3fe52d8265..8e3afe8d6c 100644 --- a/js/forms-json-utils.js +++ b/js/forms-json-utils.js @@ -155,6 +155,11 @@ function ValidateField(sFieldId, sPattern, bMandatory, sFormId) { bValid = false; } + else if ((currentVal == '') || (currentVal == 0)) + { + // An empty field is Ok... + bValid = true; + } else if (sPattern != '') { re = new RegExp(sPattern);