Solved

Hide Ribbon Buttons on Form Library

Posted on 2014-01-09
2
915 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 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
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...
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
This Experts Exchange lesson shows how to use VBA to loop through rows in Excel.  In order to sort, filter, and use database features, there needs to be a value in each column for every row. When data arrives with values missing, code to copy values…

740 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