0

When I have this in my validation rules, it's working on,

'my_field': {
    required: true,
    number: false,
 }

But when I tried to do this,

'my_field': {
    required: true,
    number: function(){
      return false
    },
}

This always set my number to true, Why not false?

What did I do wrong?

peak
  • 105,803
  • 17
  • 152
  • 177
Vicheanak
  • 6,444
  • 17
  • 64
  • 98

0 Answers0