Hi,
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) {
callback(true);
} else {
alert(‘Length should be 1-3.’);
callback(false);
}
}
},