Change and hide buttons from "commandBarProps"

Radu TIRNACOP 105 Reputation points
2023-03-11T14:29:23.62+00:00

For the properties button in "commandBarProps" I would like to change its position and also to hide it if several items are selected.

I tried the following Json code and my position does not change, but it is hidden in multiple selection. Do you have any idea what to change in the code?

       {
        "key": "properties",
        "position": 1,
        "sectionType": "Primary",
        "selectionModes": [
          "MultiSelection"
        ],
        "hide": true
      }
Microsoft 365 and Office | SharePoint | Development
{count} votes

Accepted answer
  1. Emily Du-MSFT 51,841 Reputation points Microsoft External Staff
    2023-03-13T09:33:01.45+00:00

    I have tested in my SharePoint Online and I could reproduce the issue.

    I suspect that position and hide of a same command are conflicted. And they cannot be set at the same time.

    I suggest you open a service request to get further help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.