Formatting JSON of subElements from commandBar not working
Closed this issue · 1 comments
Hi, here the detail for the bug
Sample (which sample are you having trouble with)
Formatting JSON for hiding sub-elements under the "Export" button in a SharePoint list.
What Should Happen
When using JSON formatting to hide sub-elements (e.g., exportExcel) of the "Export" button in a SharePoint list using the key "exportExcel", it should hide only the specified sub-elements while keeping the main "Exporter" button intact.
What Actually Happens
The JSON formatting to hide sub-elements of the "Export" button (like Export to excel using the key "exportExcel") no longer works. However, using the export key "export" to hide the main "Export" button globally still functions as expected.
I believe this issue affects all sub-elements within SharePoint lists since the new interface update, as it used to work correctly before.
Hi @DAKK-chaloon !
The JSON formatting to hide sub-elements of the "Export" button (like Export to excel using the key "exportExcel") no longer works.
I tried it in my environment and indeed it could not be hidden.
However, this is a community repository and it is difficult to fix bugs etc. in the product. Therefore, I am sorry, but could you please create an issue in the following repository and report the bug to Microsoft?
https://github.com/SharePoint/sp-dev-docs