Forum Discussion
AyeshaKulsumSJ
Sep 10, 2022Brass Contributor
Card is blurred on click of buttons
{
"type": "AdaptiveCard",
"version": "1.5",
"body": [
{
"type": "Container",
"horizontalAlignment": "Center",
"$data": "${$root.name}",
"spacing": "Medium",
"items": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"url": "",
"width": "20px",
"spacing": "None",
"id": "icon1"
}
]
},
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "TextBlock",
"text": "0 votes (Anonymous)",
"wrap": true,
"id": "text1",
"spacing": "Small",
"horizontalAlignment": "Left"
}
]
},
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"url": "",
"width": "20px",
"spacing": "None",
"id": "icon2",
"separator": true,
"horizontalAlignment": "Right"
}
],
"separator": true,
"horizontalAlignment": "Right"
},
{
"type": "Column",
"width": "stretch",
"horizontalAlignment": "Center",
"verticalContentAlignment": "Center",
"items": [
{
"type": "TextBlock",
"text": "Expires by 26 Jun",
"wrap": true,
"horizontalAlignment": "Left"
}
],
"spacing": "Small"
}
]
}
]
},
{
"type": "TextBlock",
"text": " test question",
"size": "Medium",
"weight": "Bolder",
"wrap": true
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Execute",
"title": "veg",
"data": {
"data": {
}
},
"msteams": {
"type": "task/fetch"
}
},
"url": ""
},
{
"type": "Action.Execute",
"title": "n veg",
"data": {
"data": {
}
},
"msteams": {
"type": "task/fetch"
}
},
"url": ""
},
{
"type": "Action.Execute",
"title": "this",
"data": {
"data": {
}
},
"msteams": {
"type": "task/fetch"
}
},
"url": ""
}
]
}
]
}
]
}
]
}
Whole Card is getting blurred on click of the button.
- Meghana-MSFTMicrosoftIt seems like the JSON you shared is not valid. Can you please validate your JSON again and share the correct one?
- AyeshaKulsumSJBrass Contributor
Meghana-MSFT Updated exact JSON
Here we are using action execute so that on click we will perform only backend operations
{"type": "AdaptiveCard","version": "1.5","body": [{"type": "Container","horizontalAlignment": "Center","$data": "${$root.name}","spacing": "Medium","items": [{"type": "ColumnSet","columns": [{"type": "Column","width": "auto","items": [{"type": "Image","url": "","width": "20px","spacing": "None","id": "icon1"}]},{"type": "Column","width": "auto","items": [{"type": "TextBlock","text": "0 votes (Anonymous)","wrap": true,"id": "text1","spacing": "Small","horizontalAlignment": "Left"}]},{"type": "Column","width": "auto","items": [{"type": "Image","url": "","width": "20px","spacing": "None","id": "icon2","separator": true,"horizontalAlignment": "Right"}],"separator": true,"horizontalAlignment": "Right"},{"type": "Column","width": "stretch","horizontalAlignment": "Center","verticalContentAlignment": "Center","items": [{"type": "TextBlock","text": "Expires by 26 Jun","wrap": true,"horizontalAlignment": "Left"}],"spacing": "Small"}]}]},{"type": "TextBlock","text": " test question","size": "Medium","weight": "Bolder","wrap": true},{"type": "ColumnSet","columns": [{"type": "Column","width": "stretch","items": [{"type": "ActionSet","actions": [{"type": "Action.Execute","title": "veg","data": {"data": {"type": "type1"},"msteams": {"type": "task/fetch"}},},{"type": "Action.Execute","title": "n veg","data": {"data": {"type": "answerPoll"},"msteams": {"type": "task/fetch"}},},{"type": "Action.Execute","title": "this","data": {"data": {"type": "answerPoll"},"msteams": {"type": "task/fetch"}},}]}]}]}]}- Meghana-MSFTMicrosoftWe tried this card at our end, and the card is not rendering at all. Could you please let us know usage of "$data": "${$root.name}"? From where it is being referred and used?