[Vtigercrm-developers] Examples of extending Vtiger_BaseValidator_Js
Alan Lord
alanslists at gmail.com
Tue Sep 9 14:57:28 GMT 2014
On 09/09/14 15:00, Alan Lord wrote:
>
> Just got round to looking at this and have sorted it.
>
Have just noticed that using the standard "Integer" Field_Validator test
it will accept an integer with a single char at the front or in the
middle of the number string, e.g.
> <input type="text" value="15" data-validation-engine="validate[required, funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-validator="[{"name":"Integer"}]" name="radius" id="form-validation-field-3">
Q12 will pass the test.
Qa12 will not.
P12 will
1P5 will
15p will not
1a5 will
1aa5 will not.
HTH
Al
More information about the vtigercrm-developers
mailing list