I found that insert_error message not working in insert state in GC datatables theme! How we see at hte attached file in update all OK!
https://github.com/scoumbourdis/grocery-crud/blob/master/assets/grocery_crud/themes/datatables/js/datatables-edit.js
row 62
success: function(data){ $("#FormLoading").hide(); if(data.success) { $('#crudForm').ajaxSubmit({ dataType: 'text', cache: false, beforeSend: function(){ $("#FormLoading").show(); }, success: function(result){ $("#FormLoading").fadeOut("slow"); data = $.parseJSON( result ); if(data.success) { if(save_and_close) { if ($('#save-and-go-back-button').closest('.ui-dialog').length === 0) { window.location = data.success_list_url; } else { $(".ui-dialog-content").dialog("close"); success_message(data.success_message); reload_datagrid(); } return true; } $('.field_error').removeClass('field_error'); form_success_message(data.success_message); reload_datagrid(); } else { form_error_message(message_update_error); } }, error: function(){ //here we have message_update_error form_error_message( message_update_error ); } });