10. January 2014 10:38
For a particular Form Library I was interested in making it difficult to do too much with the Forms except add them. I employed a range of measures, one of which was to hide the ribbon buttons for Sharing or opening with Explorer View.
This can be done by creating a customAction and deploying it to your site. Some of this is documented elsewhere, but I noticed that there were no examples showing multiple buttons hiding - the examples showed a single instance. Also the examples always showed a "RegistrationId" of 101, without explaining that this targeted Document Libraries. To target Form Libraries I had to dig up the fact that "RegistrationId" of Form Libraries is 115.
The xml looks like this;
To get this into your site, create an empty SharePoint project in Visual Studio. A sandboxed solution is fine. Add a feature to the project, and paste the above XML into the Elements.xml file. Smallest scope for the feature is Web.
Build and add the WSP to your Solution Gallery via Site Collection Settings. When activated, and the Feature activated in a given Web, it will hide the named buttons in all Form Libraries in the current SPWeb.
Here's a list of other elements you could hide using the above method; http://msdn.microsoft.com/en-us/library/ee537543(v=office.14).aspx
Mike Smith kindly documented the many Registration IDs for different libraries here; http://techtrainingnotes.blogspot.ch/2008/01/sharepoint-registrationid-list-template.html
20. June 2013 20:57
There are two options to hide the ribbon on InfoPath List Forms. One easy, one a little complicated, but there's a good reason to choose the complicated one (if you need it!). [More]
10. April 2013 14:43
How to remove the ribbon and add your own buttons to a SharePoint InfoPath List Form isn't obvious. Here we see how it's done. [More]