How to customize List Item Delete popup in Office 365

Hi,

Kindly suggest me any solutions or reference links regarding how to run custom code for OK button in List Item Delete popup.

June 24th, 2015 4:30pm

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

Free Windows Admin Tool Kit Click here and download it now
June 25th, 2015 6:00am

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

June 25th, 2015 6:53am

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

http://lsharepoint.com/2012/04/10/create-a-custom-delete-button-on-sharepoint-list-form-using-ecmascript-and-client-object-model/

Using JSLink to implement delete-buttons in list view

http://sharepoint-community.net/profiles/blog/show?id=6614983%3ABlogPost%3A138057&commentId=6614983%3AComment%3A139501

Best Regards

Free Windows Admin Tool Kit Click here and download it now
June 25th, 2015 10:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics