question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adaptive Card Choice Lists not respecting the expanded / collapsed settings

See original GitHub issue

Adaptive Cards with lists of choices within them are always showing the choices as radio buttons instead of drop down lists, even when they have been designed to show as collapsed. Choice lists were working correctly a few weeks ago so this seems to be an issue introduced recently.

The below adaptive card JSON displays choices correctly as drop downs in the Adaptive Cards Designer, but incorrectly in the emulator. I believe choices should only as radio buttons if you have used “style”: “expanded” when configuring the choice set on the card.


{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "Container",
      "items": [
        {
          "type": "TextBlock",
          "size": "Medium",
          "weight": "Bolder",
          "text": "Help us improve this service"
        }
      ]
    },
    {
      "type": "Container",
      "items": [
        {
          "type": "TextBlock",
          "text": "How would you rate the virtual assistant chat?",
          "wrap": true
        }
      ]
    },
    {
      "type": "Input.ChoiceSet",
      "id": "Rating",
      "placeholder": "Please select an answer",
      "choices": [
        {
          "title": "Excellent",
          "value": "Excellent"
        },
        {
          "title": "Very Good",
          "value": "Very Good"
        },
        {
          "title": "Good",
          "value": "Good"
        },
        {
          "title": "Poor",
          "value": "Poor"
        },
        {
          "title": "Very poor",
          "value": "Very poor"
        }
      ]
    },
    {
      "type": "Container",
      "items": [
        {
          "type": "TextBlock",
          "text": "Did virtual assistant chat answer your query today?",
          "wrap": true
        }
      ]
    },
    {
      "type": "Input.ChoiceSet",
      "id": "QueryAnswered",
      "placeholder": "Please select an answer",
      "choices": [
        {
          "title": "Yes - Fully",
          "value": "Yes - Fully"
        },
        {
          "title": "Yes - Partially",
          "value": "Yes - Partially"
        },
        {
          "title": "No - Not at all",
          "value": "No  - No at all"
        }
      ]
    },
    {
      "type": "Container",
      "items": [
        {
          "type": "TextBlock",
          "text": "If you had not talked to us through live chat, how would you have found the information you need?",
          "wrap": true
        }
      ]
    },
    {
      "type": "Input.ChoiceSet",
      "id": "AlternativeMedium",
      "placeholder": "Please select an answer",
      "choices": [
        {
          "title": "Phone",
          "value": "Phone"
        },
        {
          "title": "Email",
          "value": "Email"
        },
        {
          "title": "Web search",
          "value": "Web search"
        },
        {
          "title": "Competitor site",
          "value": "Competitor site"
        },
        {
          "title": "Would give up",
          "value": "Would give up"
        },
        {
          "title": "None of these",
          "value": "None of these"
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.Submit",
      "id": "ExitSurvey",
      "title": "Send feedback",
      "data": {
        "source": "ExitSurvey"
      }
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.0"
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
garyprettycommented, Apr 18, 2019

@tonyanziano Thanks for the update. I’ll wait for the working build to come and test again. Still able to repro my issue on the release version of 4.3.3, so not sure what is going on and why you don’t see the same thing.

0reactions
cwhittencommented, Jul 24, 2019

Closing due to inactivity - @garypretty reach out if you’re still having trouble!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Text formatting in cards - Teams
In this module, learn what is card text formatting in Microsoft Teams and format cards with markdown.
Read more >
Input.ChoiceSet - Schema Explorer
Used to identify collected input when the Submit action is performed. 1.0. choices, Input.Choice[], No, Choice options. 1.0. isMultiSelect ...
Read more >
Use Adaptive Cards to Update Microsoft Lists from Teams ...
In this blog post I will show how to update a Choice column in Microsoft Lists using a Microsoft Teams Adaptive Card and...
Read more >
Adaptive Cards
Also, I found this effective for only 1 Action from the Microsoft Team's Adaptive Card related actions. Not others. Adaptive Card to Teams...
Read more >
Quiz settings - MoodleDocs
This page describes the options you can set for the quiz activity. ... of the Quiz administration settings block) All settings may expanded...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found