Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Hide Delete Item option from DispForm.aspx

  Asked By: Angie    Date: Jul 18    Category: Sharepoint    Views: 13629

Is there a way to hide Delete Item option in the toolbar from both
DispForm.aspx and EditItem.aspx page of document library. I can override the
DeleteItem() javascript, but the requirement is not to display Delete Item
option in the toolbar.

Which files do I need to modify to get this done.



2 Answers Found

Answer #1    Answered By: Josie Barron     Answered On: Jul 18

Well it would appear that the button has a unique ID (diidIODeleteItem) so
if you wanted to globally hide  it then you could do so using CSS - or modify
the javascript  to only set the style to display:none on this ID for certain

Answer #2    Answered By: Tamika Cummings     Answered On: Jul 18

I appended Toolpaneview=2 to the URL DispForm.aspx, EditForm.aspx etc.
and, added a hidden CEWP

#diidIODeleteItem {display:none}

all this without using FrontPage.

Didn't find what you were looking for? Find more on Hide Delete Item option from DispForm.aspx Or get search suggestion and latest updates.