want to validate that a field can only contain numbers or floating point number
I tried this code.var regexp = new SNC.Regex('/^\d*\.?\d*/'); var value1 = g_form.getValue('variables.rom'); if(!regexp.match(value1)) { alert('Only numbers and dot allowed'); g_form.setValue('variables.rom',''); }But regexp.match(v...