⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Validation rules



Robert
  • profile picture
  • Member

Posted 28 August 2013 - 10:27 AM

Is there a way to add all validation rules in a file and then jest call the file ? or is better to have validation on the function for the specific table.


Amit Shah
  • profile picture
  • Member

Posted 29 August 2013 - 15:10 PM

Well technically it is used as part of the function which is used for creation of the grocerycrud form / grid. There when you set the rules, the function will automatically set it again and will be parsed in post insert / update validation call. If you plan to keep it outside, you can but then will have to manage your way to deal in with validations.


Robert
  • profile picture
  • Member

Posted 30 August 2013 - 07:59 AM

Thanks for the info...