django-formidable icon indicating copy to clipboard operation
django-formidable copied to clipboard

Test the "Validation grid"

Open brunobord opened this issue 7 years ago • 0 comments

Validations are using the following form: "field" + "comparison operator" + "value".

There is a defined set of comparison operators, but all of them are not applicable to every field type. I don't know if it's possible to validate the following grid, that is to say that we may enforce some operators only for a defined field type...

  • text: MINLENGTH, MAXLENGTH, REGEXP
  • paragraph: MINLENGTH, MAXLENGTH, REGEXP
  • date: GT, GTE, LT, LTE, EQ, NEQ, IS_AGE_ABOVE (>=), IS_AGE_UNDER (<), IS_DATE_IN_THE_PAST, IS_DATE_IN_THE_FUTURE
  • number: GT, GTE, LT, LTE, EQ, NEQ

brunobord avatar Feb 15 '18 08:02 brunobord