Forum Discussion
iOS Teams app sends all choice data on Adaptivecard
t_shi_ma_da -Could you please elaborate your requirement and share the repro steps and adaptive card json, so that we can try it from our end?
- t_shi_ma_daMar 28, 2022Copper Contributor
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?
- Sayali-MSFTMar 30, 2022
Microsoft
t_shi_ma_da- We are able to repro that scenario, We have raised bug for the same and concerned team is looking into it. We will inform you once we get any update. - Sayali-MSFTMar 28, 2022
Microsoft
t_shi_ma_da- Thanks for sharing the details. We are check it from our end and let you know.