I am creating a custom card display in gallery format. So - far - EVERYTHING is looking great. My data is grouped on client name. What I want to do is pull a URL from the list row that points to the client team assignment PDF.
Below is my code - with www.google.com as the URL currently used with my teamwork Fluent icon. What I'm trying to do here is put in the href a value from the list record column "TeamSheetURL". Before you say it... putting "[$TeamSheetURL]" does not work. And I can't find an example of being able to pull other row data into the header outside of what is being grouped on.
"children": [
{
"elmType": "div",
"children": [
{
"elmType": "span",
"style": {
"padding": "5px 5px 5px 5px",
"font-weight": "500",
"font-size": "16px"
},
"txtContent": "@group.fieldData.displayValue"
},
{
"elmType": "a",
"attributes": {
"href": "http://www.google.com",
"target": "_blank"
},
"children": [
{
"elmType": "span",
"attributes": {
"iconName": "teamwork"
}
}
]
}
]
TeamSheetURLcolumn? Also, make sure you are using correct internal name of your column as JSON formatting expects internal names.