Change delete confirmation message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2017 05:19 PM
Hi,
I want to be able to change the delete confirmation message when deleting records. I was able to do it in the form by changing the text from the messages table. But for the list choice "Delete", it still displays the default message "Delete selected record(s)" even after updating the text from the messages table. Even replacing the UI action and UI page that are called from the Delete UI action, it still displays the default message. I'm beginning to think the message for the "Delete" list choice might be hardcoded.
Any ideas?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2017 08:12 PM
Hi Maria,
If i understand you correctly, you wanted to change the message in the popup box triggered by the "Delete" UI action from the choice list on the bottom left of the list view? There is a UI Page called "delete_confirm_list". I believe you can change the message in line 18:
This is my result:
I hope this is what you are looking for
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2017 08:34 PM
Hi Samuel,
It is. But in my case, I want it to display only on a particular table. So I created a new UI action, copied from the global one and a new UI page, copied from delete_confrm_list and called it from the new UI action. But it still displays the default message.
I have done this for the form action but somehow doesn't work for the list.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2017 08:42 PM
If you look at the code in "delete_confirm_list" UI Page. I believe you can put a condition there like line 24 and wrap around line 18:
I didn't test this myself but I assume it should work. If it is your specific table, display the custom message, otherwise, display the default one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2017 06:09 PM
Hi Samuel,
I tried that one and it worked. I dont know why it wouldn't work if I create a custom UI action for my table and custom UI page.
But anyway, thanks for you help.