Delete Record when cancelled
-
- Posts: 8
- Joined: Wed Oct 05, 2016
I would like to delete the list item anytime the cancel button is clicked in the Edit Form
-
- Moderator
- Posts: 33
- Joined: Wed Sep 21, 2016
Hi! You can use this code to do it:
Code: Select all
fd.cancel().click(function(){
SP.Ribbon.PageManager.get_instance().get_commandDispatcher().executeCommand('Ribbon.ListForm.Display.Manage.DeleteItem', null);
});
-
- Information
-
Who is online
Users browsing this forum: No registered users and 5 guests