SOLVED

Sharepoint Online List View Formatting using json - add new URL

Copper Contributor

Hi, trying to add a link using the commandBarProps. Not working. Help please. Thanks.

 

{
"$schema":"https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
"commandBarProps":{
"commands":[
{
"elmType":"a",
"txtContent":"Test",
"attributes":{
"href":"https://www.google.com",
"target":"_blank"
}
}
]
}
}

1 Reply
best response confirmed by NewBee117 (Copper Contributor)
Solution

@NewBee117 Unfortunately, you cannot add new links/buttons in SharePoint list command bar using JSON formatting commandBarProps.

 

You can only customize the existing (out of the box) list commands to rename, show/hide, change icon, position, etc.

 

DocumentationCommand bar customization syntax reference  


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.

1 best response

Accepted Solutions
best response confirmed by NewBee117 (Copper Contributor)
Solution

@NewBee117 Unfortunately, you cannot add new links/buttons in SharePoint list command bar using JSON formatting commandBarProps.

 

You can only customize the existing (out of the box) list commands to rename, show/hide, change icon, position, etc.

 

DocumentationCommand bar customization syntax reference  


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.

View solution in original post