Announcements
Hi,
We are working on a PVA solution, where-in we are trying to use the preview feature. When we try to add an adaptive card with multiselect options, we are not getting the response from the Adaptive card.
Below is the adaptive card template that we are using.
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.3",
"body": [
{
"type": "Input.ChoiceSet",
"id": "myInformations",
"label": "What are all information should present in the letter",
"isMultiSelect": true,
"choices": [
{
"title": "Basic Annual Salary",
"value": "Basic Annual Salary"
},
{
"title": "Home Address",
"value": "Home Address"
},
{
"title": "Position",
"value": "Position"
},
{
"title": "Primary Work Location",
"value": "Primary Work Location"
},
{
"title": "Date Of Hire",
"value": "Date Of Hire"
},
{
"title": "Hours Per Week",
"value": "Hours Per Week"
}
]
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"style": "positive",
"associatedInputs": "auto",
"id": "myInformationSubmit"
}
]
}
]
}
I used https://adaptivecards.io/designer/, pasted your JSON, and used the preview mode to see the output.
Thank you so much @HenryJammes . This worked just fine.
On another note, in general how do we see what is the response from an Adaptive card selection?
Regards,
Arun Kumar
Thanks for catching this @aasirvatham,
Looks like we wrongly interpret the output as a table when the adaptive card in fact returns a comma separated list of values in a string.
If you switch to the code editor view, can you replace the adaptive card outputs to this?
outputType:
properties:
actionSubmitId: String
myInformations: String
It should then work:
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.