Skip to content

Commit 26d998d

Browse files
authored
Merge pull request #9468 from MicrosoftDocs/lucciz01-tech-reviewed
AB#7009: Update ribbon-issues-button-hidden.md
2 parents 2c9a0d9 + 289ce2b commit 26d998d

1 file changed

Lines changed: 28 additions & 5 deletions

File tree

support/power-platform/power-apps/create-and-use-apps/ribbon-issues-button-hidden.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: A button on the command bar is hidden
33
description: Fixes an issue in which a button on the command bar is hidden when it should be visible in Microsoft Power Apps.
4-
ms.reviewer: krgoldie, srihas, tahoon
5-
ms.date: 09/25/2023
4+
ms.reviewer: krgoldie, srihas, tahoon, hazhou
5+
ms.date: 08/11/2025
66
ms.custom: sap:Configuring model-driven app commands\Command is not shown or hidden as expected
77
---
88
# A button on the command bar is hidden when it should be visible in Power Apps
@@ -17,18 +17,41 @@ A button can be hidden due to an [enable rule](/powerapps/developer/model-driven
1717
> [!WARNING]
1818
>
1919
> - Any display rule of the **EntityPrivilegeRule** type with a **PrivilegeType** value of one of the following (**Create**, **Write**, **Delete**, **Assign**, **Share**) will evaluate to false if the entity has the **Read-Only in Mobile** option enabled, which will force the entity to only permit **Read** privilege. Examples of some of the most common default system rules that will evaluate to false when the **Read-Only in Mobile** flag is enabled on the entity, are as follows, but not limited only to this list (`Mscrm.CreateSelectedEntityPermission`, `Mscrm.CanSavePrimary`, `Mscrm.CanWritePrimary`, `Mscrm.CanWriteSelected`, `Mscrm.WritePrimaryEntityPermission`, `Mscrm.WriteSelectedEntityPermission`, `Mscrm.CanDeletePrimary`, `Mscrm.DeletePrimaryEntityPermission`, `Mscrm.DeleteSelectedEntityPermission`, `Mscrm.AssignSelectedEntityPermission`, `Mscrm.SharePrimaryPermission`, `Mscrm.ShareSelectedEntityPermission`). You can edit the entity and uncheck the **Read-Only in Mobile** option to permit these rules to evaluate to true, provided the privilege being tested by the rule is also granted to the user.
20-
> - Do not remove the `Mscrm.HideOnModern` display rule from a command to force a button to appear in the Unified Interface. Commands that have the `Mscrm.HideOnModern` display rule are intended for the legacy Web Client interface and are not supported in the Unified Interface, and may not work correctly.
20+
> - Do not remove the `Mscrm.HideOnModern` display rule from a command to force a button to appear in the Unified Interface. Commands that have the `Mscrm.HideOnModern` display rule are intended for the legacy Web Client interface and are not supported in the Unified Interface, and might not work correctly.
2121
2222
1. [Enable Command checker and select the command button to inspect](ribbon-issues.md#use-command-checker).
2323
1. The following example shows the **New** button on the contact entity's grid page isn't visible and is represented by an item labeled **New (hidden)**.
2424

2525
> [!NOTE]
26-
> If your button isn't listed, it could be due to a [HideCustomAction](/powerapps/developer/model-driven-apps/define-custom-actions-modify-ribbon#hide-custom-actions) customization that may have been installed, or the associated command has a `Mscrm.HideOnModern` display rule. At the time of writing this guide, the Command Checker tool does not list buttons that have been hidden by a `HideCustomAction` or `Mscrm.HideOnModern` display rule. We are currently working to augment this listing to include this information in a future update.
26+
> If your button doesn't appear in the list, it might be hidden for one of the following reasons:
27+
>
28+
> 1. **HideCustomAction customization:**
29+
> - In the left navigation panel, look for the `HideCustomAction` section at the top.
30+
> - Expand the list and review each item. Check the location properties for a match with your button's name.
31+
> - If a match is found, this is likely why your button is hidden. To resolve the issue, follow the [Repair Options](#repair-options) instructions, but apply them to the `HideCustomAction` instead of a command.
32+
>
33+
> 2. **Mscrm.HideOnModern display rule:**
34+
> - The associated command might have a `Mscrm.HideOnModern` display rule, which hides the button in Unified Interface applications.
35+
> - Currently, the Command Checker tool doesn't list buttons hidden by this rule. This limitation is being addressed in a future update.
36+
>
37+
> 3. **Manually hidden in the command bar designer:**
38+
> - Open the [command bar designer](/power-apps/maker/model-driven-apps/use-command-designer) for your app.
39+
> - Locate your button and check the properties pane.
40+
> - At the bottom, verify that the **Hidden** field isn't checked.
2741
2842
:::image type="content" source="media/ribbon-issues-button-hidden/new-hidden.png" alt-text="Screenshot shows the New button on the contact entity's grid page isn't visible and is represented by an item labeled New (hidden).":::
2943

3044
> [!NOTE]
31-
> If the button is still hidden when all rules evaluate to **True**, it may be due to [context sensitive commands in grids](https://support.microsoft.com/topic/1100b6b5-ab64-6047-82c5-924a2b38296a). When records are selected on a grid, all buttons without a `SelectionCountRule` element will be considered not relevant to the selected record(s). And they're hidden even if their rule evaluation is **True**. Note that flyouts aren't affected since flyout children might still have record based commands.
45+
> If the button remains hidden even when all rules evaluate to **True**, check the hidden reason in the navigation panel:
46+
>
47+
> - **Hidden by selection:**
48+
> - It means that the button is hidden due to [context sensitive commands in grids](../../../dynamics-365/sales/button-in-command-bar-not-appear-after-grid-item-selection.md#cause).
49+
> - When records are selected in a grid, any button without a `SelectionCountRule` element is considered not relevant to the selected record(s) and will be hidden, even if its rule evaluation is **True**.
50+
> - Note that flyouts aren't affected, as flyout children might still have record-based commands.
51+
>
52+
> - **Hidden offline:**
53+
> - The command is hidden because you are offline, or the app is set to offline by default.
54+
> - This command isn't supported in offline mode. You can adjust your app's [offline settings](/power-apps/mobile/mobile-offline-overview) and disable offline-first if needed.
3255
3356
1. Select the **Command Properties** tab to display the details of the command for this button. This will show the enable rules and display rules, along with the result (**True**, **False**, **Skipped**) of each rule evaluation. The following example shows the **New (hidden)** button's command to be `Mscrm.NewRecordFromGrid` and there's an enable rule named `new.contact.EnableRule.EntityRule` that has evaluated to **False**, as a result the button will be hidden.
3457

0 commit comments

Comments
 (0)