[Adaptive Cards] Input.Choiceset is cleared when we click on Action.ShowCard.

green 76 Reputation points
2022-05-12T06:40:26.05+00:00

Input.Choiceset is cleared when we click on Action.ShowCard.
It occurs on teams windows and teams web.

Example 1:

  1. Select choice0C at ChoiceSet0.
  2. Show ShowCard1.
  3. ChoiceSet0 is cleared.

Example 2:

  1. Show ShowCard1.
  2. Select choice1C at ChoiceSet1.
  3. Show ShowCard2.
  4. Show ShowCard1.
  5. ChoiceSet1 is cleared.

My adaptive card:

{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.4",
  "body": [
    {
      "type": "Input.ChoiceSet",
      "label": "ChoiceSet0",
      "id": "ChoiceSet0",
      "choices": [
        { "title": "choice0A", "value": "1a" },
        { "title": "choice0B", "value": "1b" },
        { "title": "choice0C", "value": "1c" }
      ]
    },
    {
      "type": "ActionSet",
      "actions": [
        {
          "type": "Action.ShowCard",
          "title": "ShowCard1",
          "id": "ShowCard1",
          "card": {
            "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
            "type": "AdaptiveCard",
            "version": "1.4",
            "body": [
              {
                "type": "Input.ChoiceSet",
                "label": "ChoiceSet1",
                "id": "ChoiceSet1",
                "choices": [
                  { "title": "choice1A", "value": "1a" },
                  { "title": "choice1B", "value": "1b" },
                  { "title": "choice1C", "value": "1c" }
                ]
              }
            ]
          }
        },
        {
          "type": "Action.ShowCard",
          "title": "ShowCard2",
          "id": "ShowCard2",
          "card": {
            "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
            "type": "AdaptiveCard",
            "version": "1.4",
            "body": [
              {
                "type": "Input.ChoiceSet",
                "label": "ChoiceSet2",
                "id": "ChoiceSet2",
                "choices": [
                  { "title": "choice2A", "value": "2a" },
                  { "title": "choice2B", "value": "2b" },
                  { "title": "choice2C", "value": "2c" }
                ]
              }
            ]
          }
        }
      ]
    }
  ]
}
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,842 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sayali-MSFT 2,266 Reputation points Microsoft Vendor
    2023-01-11T09:40:40.6966667+00:00

    @green-9424- Issue is Resolved. Could you please check it once?
    Microsoft Teams Version 1.6.00.869 (64-bit).

    0 comments No comments

  2. Babulal Sah 0 Reputation points
    2023-01-11T10:23:06.0566667+00:00

    how to bind data from database in Input.Choiceset when we click on Action.ShowCard using dot net core?

    0 comments No comments