Change and hide buttons from "commandBarProps"

Radu TIRNACOP 85 Reputation points

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": [
        "hide": true
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,657 questions
{count} votes

Accepted answer
  1. Emily Du-MSFT 41,771 Reputation points Microsoft Vendor

    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