Solved

Hide Ribbon Buttons on Form Library

Posted on 2014-01-09
2
889 Views
Last Modified: 2014-01-09
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?
0
Comment
Question by:Jamie McAllister MVP
  • 2
2 Comments
 
LVL 31

Accepted Solution

by:
Jamie McAllister MVP earned 0 total points
ID: 39768064
Nailed it. The RegistrationID value of 101 is Document Library. For Form Library it needed to be 115.
0
 
LVL 31

Author Closing Comment

by:Jamie McAllister MVP
ID: 39768066
Fantastic work Jamie
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now