Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hide Ribbon Buttons on Form Library

Posted on 2014-01-09
2
Medium Priority
?
962 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 32

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 32

Author Closing Comment

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

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Adoption of Microsoft’s Enterprise Mobility and Security solution and Office 365 will re-order the File Sync and Share market Microsoft has stated that its Enterprise Mobility + Security (EMS) is the fastest growing product in the history of the …
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

704 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