Forum Discussion
iOS Teams app sends all choice data on Adaptivecard
Thanks for the response. Answer follows.
Repro step
1. send AC card on MS Teams. Make sure you can see the values sent to bot from Teams (posting sent values (message.value) to reply for now))
2. submit from PC with single checkbox checked (screenshot 1)
-> returns expected value
3. submit from iOS app with single checkbox checked (screenshot 2)
-> returns unexpected value (unexpected part: contains id from unchecked choiceset)
Sources
Attached AC json & screenshots on each platform(PC, iOS).
Works as expected on PC but adds empty choiceset on iOS. (Assumed PC behavior as expected since it was same on adaptive card designer.)
Raw adaptivecard
{
"type": "AdaptiveCard",
"body": [
{
"type": "Input.ChoiceSet",
"id": "requiredMultiselectId",
"style": "expanded",
"isMultiSelect": true,
"label": "Required Input.ChoiceSet label (expanded, multiselect)",
"errorMessage": "This is a required input",
"choices": [
{
"title": "Option 1",
"value": "1"
}
]
},{
"type": "Input.ChoiceSet",
"id": "requiredMultiselectId_2",
"style": "expanded",
"isMultiSelect": true,
"label": "Required Input.ChoiceSet label (expanded, multiselect)",
"errorMessage": "This is a required input",
"choices": [
{
"title": "Option 2",
"value": "2"
}
]
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Action.Submit"
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.3"
}
PC submission -> expected output (returns only checked)
[screenshot1]
iOS submission -> Not expected
(returns empty Options 1 id even if option2 is the only checked button. (it's not selected on screenshot since the screenshot was captured on PC))
[screenshot2]
As a workaround, I will add an additional empty value check.
Would this behavior be fixed? Is it a known bug?