The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hi @Mcintosh, Rebecca ,
I'm glad to hear you solve the problem, thank you for your enthusiasm in posting your research success to help more people. If you have any issue about SharePoint, you are welcome to raise a ticket in this forum. I would make a brief summary of this thread:
Issue Symptom:
SharePoint column formatted button does not work in Tile View
Current status:
The issue has been solved. The solution is: add the customRowAction and all the formatting of the button from column along with the columnFormatterReference and then set the customRowAction for the container itself to none.
{
"elmType": "div",
"attributes": {
"class": "=if([$Status] == 'Awaiting Approval', 'ms-bgColor-tealLight ms-bgColor-teal--hover ms-fontColor-white ms-fontSize-12 ms-fontWeight-bold', 'ms-bgColor-transparent ms-bgColor-neutralQuaternaryAlt--hover ms-fontColor-neutralQuaternary ms-fontColor-tealLight--hover ms-fontSize-12')"
},
"customRowAction": {
"action": "setValue",
"actionInput": {
"Status": "Approved"
}
}
},
{
"elmType": "div",
"attributes": {
"class": "ms-bgColor-white sp-css-borderColor-neutralLight sp-card-borderHighlight sp-card-subContainer"
},
"customRowAction": {
"action": "none"
},
"children": [
{
"elmType": "div",
"attributes": {
"class": "sp-card-displayColumnContainer"
},
"children": [
{
"columnFormatterReference": "[$ChangeStatus]"
}
]
},
You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!