2

how to hide or remove or disable delete item button on sharepoint list.( Except transform permissions)
Thanks enter image description here

1

Based upon the context of this article you need to overwrite the CAMopt JavaScript method in Core.JS using the following:

function CAMOpt(p,wzText,wzAct,wzISrc,wzIAlt,wzISeq,wzDesc)
{
     var mo=CMOpt(wzText,wzAct,wzISrc,wzIAlt,wzISeq,wzDesc);

     if(!mo)return null;

     if(wzText != "Delete Item") AChld(p,mo);
     return mo;
}

I found an article that shows a method to do this in PowerShell as well (available here) but I think this is less than ideal and would recommend the above approach.

  • According to this link .Overriding core.js . But it doesn't work. – Zahra Hosseini Sep 28 '15 at 10:07
0

If it´s just for this list you can use a custom CSS.

<style>#ID_DeleteDocItem{ display:none;} </style>

But it will only apply where the CSS is active and would affect every user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.