SharePoint Online Column Button not working from Gallery View

SarahK 21 Reputation points
2021-07-12T04:27:31.627+00:00

I have created a list in SharePoint online and successfully created a button which activates a flow using power automate. I have created several customised views including gallery views however the button does not work when in gallery view. Is this a JSON customisation issue or does SharePoint not support use of buttons in gallery view?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,791 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Allen Xu_MSFT 13,776 Reputation points
    2021-07-12T09:11:16.17+00:00

    Hi @SarahK ,

    You can refer to a column's formatter JSON inside Gallery view formatter and use it along with other elements to build a custom view visualization. This can be done by using columnFormatterReference property. There is a demo for your reference: Column formatter reference. Set "columnFormatterReference": [$<your button column name>] in the JSON code and apply the code to the Gallery view formatting.

    Test on my end:
    113816-image.png
    113817-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.


  2. James Moyle - Royal High School 1 Reputation point
    2022-04-28T19:45:24.203+00:00

    This was helpful in getting the button to appear correctly, but I still have an issue. Clicking on any part of the Galler Card opens the item