Define ribbon tab display rules

Define ribbon tab display rules

Applies To: CRM 2016 on-prem, CRM Online

Tab display rules control whether a specific tab is displayed for a ribbon or not.

Unlike other ribbon elements like groups or specific controls, you must explicitly provide a tab display rule for a tab to be displayed in the ribbon. By default, other ribbon elements will always display unless a display rule removes them.

<TabDisplayRule> (RibbonDiffXml) elements require that the TabCommand attribute matches a <Tab> (RibbonDiffXml)Command attribute value.

In the RibbonDiffXml, tabs can be defined for specific entities or defined globally. If the tab is defined for an entity, the only valid type of rule is <EntityRule> (RibbonDiffXml). Because defining a tab in the scope of a particular entity already limits the tab to only that entity, the only valid attributes are AppliesTo (PrimaryEntity or SelectedEntity) and Context (Form, HomePageGrid, SubGridStandard, or SubGridAssociated).

When you define a tab display rule globally in the RibbonDiffXml for the application ribbons, you can apply both EntityRule elements and <PageRule> (RibbonDiffXml) elements.

See Also

Microsoft Dynamics CRM 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.
© 2015 Microsoft