Hi,
Problem: My Adaptive card does not show up when using Dynamic Dropdowns
I'm trying to create an adaptive card with Dynamic dropdowns stored in the String variable 'ChoiceSet' with values:
[ { "title": "App 1", "value": "app1" }, { "title": "App 2", "value": "app2" }, { "title": "App 3", "value": "app3" } ]
The Adaptive card JSON:
{
type: "AdaptiveCard",
schema: "http://adaptivecards.io/schemas/adaptive-card.json",
version: "1.5",
body: [
{
type: "TextBlock",
text: "Options",
weight: "bolder",
size: "medium",
style: "heading",
wrap: true
},
{
type: "TextBlock",
text: "Please select your options",
isSubtle: true,
wrap: true
},
{
type: "Container",
items:
[
{
type: "Input.ChoiceSet",
style: "Expanded",
label: "Make your choice",
id: "myChoice",
choices: Topic.ChoiceSet
}
]
}
],
actions: [
{
type: "Action.Submit",
title: "Submit"
}
]
}
Thanks in Advance for your help!
your card looks good. Check value of your variable. You can try adding send message and print variable to see output. It should look like below.
[{“title”:“App 1”,“value”:“app1”},{“title”:“App 2”,“value”:“app2”},{“title”:“App 3”,“value”:“app3”}]
Tried with your adaptive card and it works well. Just check your variable part. Card is good.
I tried this but I get a system error:
My adaptive card:
{
type: "AdaptiveCard",
version: "1.5",
body: [
{
type: "Input.ChoiceSet",
id: "appSelection",
choices: Topic.ApplicationNamesVar
}
],
actions: [
{
type: "Action.Submit",
title: "Submit"
}
],
'$schema': "http://adaptivecards.io/schemas/adaptive-card.json"
}
You need to parse your string value into Json using Parse Value Action so that it will output as table.
Save output to new variable. It will be saved as type table. Then use that variable in your adaptive card.
use varTablOptions variable in your adaptive card. This will give you desired output.
Romain The Low-Code...
76
Pablo Roldan
61
stampcoin
10