⚠ 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

Custom error messages in Bootstrap list view



Koia

Koia
  • profile picture
  • Member

Posted 18 March 2017 - 00:10 AM

How can I, in a controller function, set a custom error message that will be displayed in the Bootstrap theme list view page. If for instance a user tries to delete a row that is not allowed to be deleted he needs to be informed that the deletion has failed. 

 

With the datagrid theme, such a message can be set using set_lang_string( 'delete_error_message',';My error message '), but this does not work in bootstrap theme.