SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 998 forks source link

Command bar customization does not work after MS Lists interface surfaces within SharePoint #9797

Open daviduber1 opened 1 month ago

daviduber1 commented 1 month ago

This no longer appears to work with Microsoft List interface appearing within Microsoft SharePoint


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

tpodugu-ms commented 1 month ago

@daviduber1 We will take a look at this. Could you please share the formatter JSON with us?

MissHerku commented 1 month ago

I had this issue as well. In one instance it failed to hide the "new" button as the only one. In another list it seemed to not work at all. I got both scenarios to work again by pasting/saving the same json, emptying the browser cache and reloading the list. So perhaps there is a cache issue?

{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json", "hideSelection": false, "commandBarProps": { "commands": [ { "key": "new", "hide": true }, { "key": "manageForms", "hide": true }, { "key": "share", "hide": true }, { "key": "export", "hide": true }, { "key": "integrate", "hide": true }, { "key": "copyLink", "hide": true }, { "key": "edit", "hide": true } ] } }