Hi,
Kindly suggest me any solutions or reference links regarding how to run custom code for OK button in List Item Delete popup.
Technology Tips and News
Hi,
Kindly suggest me any solutions or reference links regarding how to run custom code for OK button in List Item Delete popup.
Hi,
By defualt, if you delete a list item, it will popup a confirm dialog.
If you want to run some cusotm code for click OK, we can modify the core.js and core.debug.js(C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\template\layouts).
Find the DeleteListItem() method in the file and modify it.
Best Regards
Hi,
Kindly suggest me any solutions or reference links regarding how to run custom code for OK button for List Item Delete popup in office 365.
Thanks
Hi,
In SharePoint online, we can't modify the core.js and core.debug.js file.
As a workaround, we can customize a new Delete action and use JavaScript Client Object Model to achieve delete list item, and then hide the previous "Delete Item" button.
Add, Update and Delete list items using ECMAScript
http://adicodes.com/add-update-and-delete-list-items-using-ecmascript/
Create a Custom Delete Button on Sharepoint List Form using ECMAScript and Client Object Model
Using JSLink to implement delete-buttons in list view
Best Regards