Displaying an alert box while deleting a record from related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2015 01:00 AM
Hi,
I am looking for a way to display an alert box while deleting a record from the related list.
Like, "You are about to delete this record" with Ok and Cancel buttons. Clicking ok should delete the record and clicking cancel should abort the delete operation.
I could do it while deleting the record directly from the form, but not while deleting from the list.
Sorry if the solution is simple and obvious. Could you please help.
Regards,
Bala
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2015 01:14 AM
for the list deletion,
Find the global Delete button (list choice type) and add the confirm box on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2015 02:00 AM
Hi Anurag,
Thanks for the quick response. I did try that already. But something is strange. Let me explain.
When I delete the record by list choice. I select a record in the related list and click delete option from the list choice. At that time, I get the message "Delete the selected item?" with ok and cancel buttons. Our requirement is to display the same message while clicking delete option from the context menu of a record in the related list too.
I checked the global UI action named Delete in "List Context menu" and "List choice" and in neither of those, I find the code where it shows confirm("Delete the selected item?");. So I thought somewhere else in the system, this functionality is done.
To make sure, I added confirm("Delete the selected item?") line to the List Context menu UI Action. But I don't get this confirm box while deleting a record by using the context menu.
Any help please!
Regards,
Bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2015 02:19 AM
Can you log on https://demonightlydublin.service-now.com/navpage.do
admin
admin
and check the behavior on incident's list view. And then post what different thing you need
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2015 03:58 AM
Hi Anurag,
Thanks. Even though there is no 'Delete' option in the List Context Menu in the demodublin instance(which is what our actual requirement is) I referred to the code in the List Choice and altered it to make it work for the List Context Menu.
Thanks for your help.
Regards,
Bala