Validator not working on type numeric

Tags: #<Tag:0x00007fd2cfb25058>

On my handson table I’ve a column which is of type ‘numeric’ and i’ve put a validator on it to check length. The same condition is working perfectly fine on type ‘text’ but not on numeric. Can you tell me why. The validator code is as follows:
data: ‘sl_no’,
type: ‘numeric’,
validator: function (value, callback) {
if(value.length >= 1 && value.length <= 3) {
} else {
alert(‘Length should be 1-3.’);

Hey @bhavrao8

seem to work fine
But you can check the quotes cause I needed to change them.

1 Like