May 22 2023 05:36 PM
In a SharePoint list I use the json code below on a column (Register) to initiate a workflow when clicking on the button.
When I add the code to the formatting of the list's Gallery view, it opens the item in Edit Mode, instead of starting the workflow.
May 22 2023 11:51 PM
@AlbertSP The JSON code you have provided in your question is for specific column formatting and not for view formatting.
Are you trying to implement it in gallery/tiles view instead of normal list/table view? If yes, you can refer JSON formatting applied on column directly inside your view formatting using columnFormatterReference like:
{
"columnFormatterReference": "[$FieldName]"
}
Where FieldName is internal name of your column. You can get the internal name of your column by following this article: How to find the Internal name of columns in SharePoint Online?
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.