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
      }
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,810 questions
{count} votes

Accepted answer
  1. Emily Du-MSFT 44,311 Reputation points Microsoft Vendor
    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