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
Solved

Hide Ribbon Buttons on Form Library

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
how to add IIS SMTP to handle application/Scanner relays into office 365.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

829 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