Forum Discussion
Sharepoint Online List View Formatting using json - add new URL
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"
}
}
]
}
}
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.
Documentation: Command 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.
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.
Documentation: Command 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.