iOS Teams app sends all choice data on Adaptivecard

Copper Contributor

When creating Adaptive card with check boxes with "choice", 

"submit action" behavior changes on platform where you execute.

On Mac App, it sends only checked(selected) data, 

but on iOS app, it sends all data including non-checked checkbox (value of the non-checked checkbox is empty).
[edit 3/28 16:16 JST since the issue was furthuer investigated.]

 

Is this expected behavior? Is it a bug?

Any workaround to use it on iOS Teams App??

 

5 Replies

@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?

@Sayali-MSFT 

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]

t_shi_ma_da_0-1648450495224.png

 

 

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]

t_shi_ma_da_1-1648450862477.png

 

 

 

As a workaround, I will add an additional empty value check.

Would this behavior be fixed? Is it a known bug?

 

@t_shi_ma_da- Thanks for sharing the details. We are check it from our end and let you know.
@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.
@t_shi_ma_da- Bug is resolved. Could you please check it once and confirm?
Microsoft Teams Version 1.5.00.29002 (64-bit)-E.
Thanks!