First of all this post is not about form validations (javascript), but validations with respect to the database constraints..
- When I add data through the add form, there are some cases which the database will not update due to database constraints I have initialized when making the database (such as duplicating primary key).. In such cases grocery crud add form will not display any error. but just kept displaying the ajax loader image.
- When I edit data through the edit form, there are some cases which the database will not update due to database constraints I have initialized when making the database (such as foreign key on update constraints).. In such cases grocery crud add form will not display any error. but just kept displaying the ajax loader image.
- When I try to delete a record from grocery crud table, there are some cases which the database will not let delete that record due to database constraints I have initialized when making the database (such as foreign key on delete constraints).. In such cases grocery crud will not display any error and do nothing.
In the above mentioned cases how can we display errors? is there any built in function for that in grocery crud? else how can we implement? (But when a record is inserted/edited/deleted successfully, grocery crud will display the successful msg)
This is important, because else user will think database did not update due to our coding bugs