Disable Delete button
-
How to disable delete link button from ribbon in display form in sharepoint site. I already tried below code but its not working in my site.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="RemoveRibbonButton"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.ListForm.Display.Manage.DeleteItem" />
</CommandUIDefinitions>
</CommandUIExtension>
</CustomAction>
</Elements> -
How to disable delete link button from ribbon in display form in sharepoint site. I already tried below code but its not working in my site.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="RemoveRibbonButton"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.ListForm.Display.Manage.DeleteItem" />
</CommandUIDefinitions>
</CommandUIExtension>
</CustomAction>
</Elements>Are you trying to remove the button from a List or Library? They are to different things and use different identifiers.
I know the language. I've read a book. - _Madmatt
-
Are you trying to remove the button from a List or Library? They are to different things and use different identifiers.
I know the language. I've read a book. - _Madmatt
-
I don't see anything wrong, it seems to be working for me.
I know the language. I've read a book. - _Madmatt
-
I don't see anything wrong, it seems to be working for me.
I know the language. I've read a book. - _Madmatt