Change delete confirmation message

mcarriedo
Kilo Contributor

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.

6 REPLIES 6

SamuelTse
Tera Guru

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:


find_real_file.png



This is my result:


find_real_file.png



I hope this is what you are looking for



Sam


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.


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:


find_real_file.png



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.


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.