Question

I want to hide the workflow button: Ribbon.List.Settings.ManageWorkflows

Which scope should the feature have (web or site)?

Now I try:

<HideCustomAction Id="RemoveRibbonButton"
    Location="CommandUI.Ribbon.List.Settings.ManageWorkflows">
</HideCustomAction>

on site scoped feature. But it doesn't work.

Was it helpful?

Solution

This is XML to hide ManageWorkflows button.

<?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.List.Settings.ManageWorkflows" />
      </CommandUIDefinitions>
    </CommandUIExtension>
  </CustomAction>
</Elements>

Check Walkthrough: Removing a Button from the Server Ribbon for more info.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top