Avatar of Jamie McAllister
Jamie McAllisterFlag for Switzerland

asked on 

Hide Ribbon Buttons on Form Library

I'm trying to hide some buttons on a Form Library in SharePoint. I put together a feature with the following Elements.xml contents, which hides the required buttons for Document Libraries, but not my Form Library. I'm guessing the Location parameter is different for Form Libraries, but can't find anything about that in the documentation.

The Elements.xml is;

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
    Id="RemoveRibbonButton"
    Location="CommandUI.Ribbon"
    RegistrationId="101" 
    RegistrationType="List">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Library.Actions.OpenWithExplorer" />
        <CommandUIDefinition Location="Ribbon.Library.Actions.ExportToSpreadsheet" />
        <CommandUIDefinition Location="Ribbon.Library.Actions.OpenWithAccess" />
        <CommandUIDefinition Location="Ribbon.Library.Share.ViewRSSFeed" />
        <CommandUIDefinition Location="Ribbon.Library.Share.AlertMe" />
        <CommandUIDefinition Location="Ribbon.Library.Share.EmailLibraryLink" />
      </CommandUIDefinitions>
    </CommandUIExtension>
  </CustomAction>
  
</Elements>

Open in new window


I see nothing in the documentation here for Form Libraries specifically;

http://msdn.microsoft.com/en-us/library/ee537543(v=office.14).aspx

Puzzlingly the above xml hides just one item in the Form Library ribbon, the Open With Explorer, but ignores the rest.

As I say the above works, but for Document Libraries, not Form libraries. What do I need to tweak?
Microsoft SharePointInfoPathMicrosoft 365

Avatar of undefined
Last Comment
Jamie McAllister
ASKER CERTIFIED SOLUTION
Avatar of Jamie McAllister
Jamie McAllister
Flag of Switzerland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Jamie McAllister

ASKER

Fantastic work Jamie
Microsoft SharePoint
Microsoft SharePoint

Microsoft Sharepoint is a software platform and family of software products used for collaboration and web publishing combined. These capabilities include developing web sites, portals, intranets, content management systems, search engines, wikis, blogs, and other tools for business intelligence and collaboration. SharePoint has a Microsoft Office-like interface, and it is closely integrated with the Office suite.

40K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo