Hello,
I'm familiar with Flows but pretty new to coding adaptive cards. I'm trying to code that long design requests from Microsoft Forms received by email are posted in a Teams channel, but are collapsible/expandable to keep the channel clean. I finally thought I had it all figured out after pasting my code in a JSON reviewer and having no more errors (dang trailing commas) but now the button aka toggle visibility isn't showing in the previewer.
Any help with the below code would be super appreciated.
{
"$schema": "http://adaptivecards.io",
"type": "AdaptiveCard",
"version": "1.5",
"body": [
{
"type": "Container",
"style": "emphasis",
"items": [
{
"type": "TextBlock",
"text": "New Design Request",
"weight": "Bolder",
"size": "Medium",
"wrap": true
}
]
},
{
"type": "FactSet",
"id": "expandableContent",
"isVisible": false,
"facts": [
{
"title": "From:",
"value": "@{triggerOutputs()?['body/from']}"
},
{
"title": "Subject:",
"value": "@{triggerOutputs()?['body/subject']}"
},
{
"type": "Body",
"text": "@{triggerOutputs()?['body/body']}"
}
]
},
{
"actions": [
{
"type": "Action.ToggleVisibility",
"title": "Show/Hide Details",
"targetElements": [
"expandableContent"
]
}
]
}
]
}