Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Hide Delete Item option from DispForm.aspx

  Asked By: Angie Erickson         Date: Jul 18, 2009      Category: Sharepoint      Views: 3333
 

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.

Tagged:              

 

2 Answers Found

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

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
users?

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

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

<style>
#diidIODeleteItem {display:none}
</style>

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].