top of page

How to remove the ribbon tabs in list forms in SharePoint 2010

Writer's picture: Vijai Anand RamalingamVijai Anand Ramalingam

In this article we will be seeing how to remove the tab and the group from the ribbon interface in list form.

I have a custom list and items are added to that.

When you view the item the display form looks like the following which has two groups "Manage" and "Actions" and each group has few tabs.


Here we will be seeing how to remove the tabs and the group from the ribbon interface in the list display form. Steps Involved:

  • Open Visual Studio 2010.

  • Go to File => New => Project.

  • Select Empty SharePoint Project template from the installed templates.


  • Enter the Name for the project and click on Add.

  • Right click on the solution =>Add => New item.

  • Select Empty Element template from the installed templates.


  • My entire solution looks like the following.


  • Replace Elements.xml with the following code.

  1.  <?xml version="1.0" encoding="utf-8"?>         

  2. <Elements xmlns="http://schemas.microsoft.com/sharepoint/">                  

  3. <CustomAction Id="RemoveTabEditItem" Location="CommandUI.Ribbon" RegistrationId="100" RegistrationType="List">                            

  4. <CommandUIExtension>                                     

  5. <CommandUIDefinitions>                                               

  6. <CommandUIDefinition Location="Ribbon.ListForm.Display.Manage.EditItem" />                                     

  7. </CommandUIDefinitions>                            

  8. </CommandUIExtension>                  

  9. </CustomAction>                  

  10. <CustomAction Id="RemoveGroupActions" Location="CommandUI.Ribbon" RegistrationId="100" RegistrationType="List">                            

  11. <CommandUIExtension>                                     

  12. <CommandUIDefinitions>                                               

  13. <CommandUIDefinition Location="Ribbon.ListForm.Display.Actions" />                                     

  14. </CommandUIDefinitions>                            

  15. </CommandUIExtension>                  

  16. </CustomAction>              

  17. </Elements>

  • Removing the Edit Item Tab: Location - Ribbon.ListForm.Display.Manage.EditItem


  • Removing the Actions group: Location - Ribbon.ListForm.Display.Actions


erver'>

0 comments

Comments


bottom of page