Page 1 of 2

Delete a record from a Related Item View?

Posted: 18 Nov 2013
by jpeszleny
Is it possible to delete a list item from a Related Item View?

Re: Delete a record from a Related Item View?

Posted: 19 Nov 2013
by Dmitry Kozlov
Hello,

Sure, you can delete related item from context menu:

Image

Re: Delete a record from a Related Item View?

Posted: 19 Nov 2013
by jpeszleny
Thanks for your replay. You answer works however it only works if you are showing the "Title" column in the related list. Is there any way of doing this without showing the "Title" column?

Re: Delete a record from a Related Item View?

Posted: 17 Dec 2013
by rlmitch01
Hi,

In native SharePoint views, a user can select an item using the individual item checkbox if the title field is not present. These checkboxes do not appear in the SP Forms releated item view. Is this a feature that can or plans to be supported in SP Forms?

Thank you!

Re: Delete a record from a Related Item View?

Posted: 18 Dec 2013
by Dmitry Kozlov
We disabled individual checkboxes in our solution because they cause issues with ribbon. Which group actions would you like to have?

Re: Delete a record from a Related Item View?

Posted: 19 Dec 2013
by rlmitch01
We would like to select multiple documents by checking them and then either delete them or select a 3rd party add-on that converts them to .pdf and emails them. If this is not feasible, do you have any thoughts on how we could accomplish whis while still using your product? Thanks!

Re: Delete a record from a Related Item View?

Posted: 23 Dec 2013
by Dmitry Kozlov
You can open the designed form in SharePoint Designer and change TabularView property of required view to TRUE. You will see checkboxes near the list items, but you have to add your own Delete and Convert to PDF links into your form and handle clicks by custom JavaScript.

Re: Delete a record from a Related Item View?

Posted: 23 Apr 2016
by arish
hi i am also using related items in spform and having issue with Delete . . . so i checked this forum and add title field but i dont want to show all the menuitems in ECB so can you please explain how we can only show Edit and Delete items in (menu ECB) and hide Workflows, Advance and share. . . I am using javacript and jquery CSS which is not working fine i-e it shows full menu items first and after 2 3 seconds then it hides and shows only Delete and Edit. . . but if you have any solution better please let me know


PS : Main issue is Delete is available on Ribbon Toolbar in related items and when we delete using this button then it will redirect to related list not current spform

Thanks

Re: Delete a record from a Related Item View?

Posted: 25 Apr 2016
by rostislav
To hide the Delete button from the ribbon add the following code to the display form:

Code: Select all

 if (window.top !== window.self) {
	$('[id^="Ribbon.ListForm.Display.Manage.DeleteItem"]').parents('.ms-cui-row').eq(0).hide();
}

Re: Delete a record from a Related Item View?

Posted: 29 Apr 2016
by arish
if i hide this delete button from ribbon then there is one option left to delete which you described by using Title field Menu Item and if this is the only solution then how can i show only delete option in menu Item. . (not remaining which is like Workflow, Advance, Share, View Item etc.) . . . .