Forum Discussion

Tom_Rischkau's avatar
Tom_Rischkau
Copper Contributor
May 26, 2023
Solved

Sharepoint Online New Buttons in the Commandbar in Microsoft Sharepoint Lists

Hey guys!

When i want to expand my lists with new buttons in the commandbar, is the only way through a new extension?

when yes, are there code templates for something like this?

i knew about list formatting to hide/add things in the commandbar but is there a way to add new buttons with formatting? i think no.

i send a screenshot , so you know what i mean.

Thanks for the help!

  • Tom_Rischkau Yes, it is not possible to add new buttons in the list command bar using JSON formatting.

     

    You have to use the SPFx ListView Command Set extension. Here's the Microsoft official documentation for creating a new extension: Build your first ListView Command Set extension 

     

    Here are few SPFx extensions samples on GitHub which can help you to get started with: SPFx extension samples - check the folders named like react-command-


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

2 Replies

  • Tom_Rischkau Yes, it is not possible to add new buttons in the list command bar using JSON formatting.

     

    You have to use the SPFx ListView Command Set extension. Here's the Microsoft official documentation for creating a new extension: Build your first ListView Command Set extension 

     

    Here are few SPFx extensions samples on GitHub which can help you to get started with: SPFx extension samples - check the folders named like react-command-


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

    • VijayBhaskar680's avatar
      VijayBhaskar680
      Copper Contributor
      How to apply background color to the custom button which is build by spfx list view command set extension

Resources