Input.ChoiceSet

Shows an array of Choice objects

Property Type Required Description
choices Input.Choice[] Yes the choice options
id string Yes Id for the value (will be used to identify collected input when SUBMIT is clicked)
isMultiSelect boolean No, default: false allow multiple choices to be selected
style string No Style hint for Input.ChoiceSet
type "Input.ChoiceSet" No Must be Input.ChoiceInput
value string No The initial choice (or set of choices) that should be selected. For multi-select, specifcy a comma-separated string of values
spacing string No Controls the amount of spacing between this element and the previous element.
separator boolean No, default: false The Separator object type describes the look and feel of a separation line between two elements.

Example

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "What color do you want? *(isMultiSelect:false, style:compact)*"
        },
        {
            "type": "Input.ChoiceSet",
            "id": "myColor",
            "style": "compact",
            "isMultiSelect": false,
            "value": "1",
            "choices": [
                {
                    "title": "Red",
                    "value": "1"
                },
                {
                    "title": "Green",
                    "value": "2"
                },
                {
                    "title": "Blue",
                    "value": "3"
                }
            ]
        },
        {
            "type": "TextBlock",
            "text": "What color do you want? *(isMultiSelect:false, style:expanded)*"
        },
        {
            "type": "Input.ChoiceSet",
            "id": "myColor2",
            "style": "expanded",
            "isMultiSelect": false,
            "value": "1",
            "choices": [
                {
                    "title": "Red",
                    "value": "1"
                },
                {
                    "title": "Green",
                    "value": "2"
                },
                {
                    "title": "Blue",
                    "value": "3"
                }
            ]
        },
        {
            "type": "TextBlock",
            "text": "What colors do you want? *(isMultiSelect:true, style:compact)*"
        },
        {
            "type": "Input.ChoiceSet",
            "id": "myColor3",
            "isMultiSelect": true,
            "value": "1,3",
            "style": "compact",
            "choices": [
                {
                    "title": "Red",
                    "value": "1"
                },
                {
                    "title": "Green",
                    "value": "2"
                },
                {
                    "title": "Blue",
                    "value": "3"
                }
            ]
        },
        {
            "type": "TextBlock",
            "text": "What colors do you want? *(isMultiSelect:true, style:expanded)*"
        },
        {
            "type": "Input.ChoiceSet",
            "id": "myColor4",
            "isMultiSelect": true,
            "value": "1",
            "style": "expanded",
            "choices": [
                {
                    "title": "Red",
                    "value": "1"
                },
                {
                    "title": "Green",
                    "value": "2"
                },
                {
                    "title": "Blue",
                    "value": "3"
                }
            ]
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "OK"
        }
    ]
}
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "text": "What color do you want? *(isMultiSelect:false, style:compact)*" }, { "type": "Input.ChoiceSet", "id": "myColor", "style": "compact", "isMultiSelect": false, "value": "1", "choices": [ { "title": "Red", "value": "1" }, { "title": "Green", "value": "2" }, { "title": "Blue", "value": "3" } ] }, { "type": "TextBlock", "text": "What color do you want? *(isMultiSelect:false, style:expanded)*" }, { "type": "Input.ChoiceSet", "id": "myColor2", "style": "expanded", "isMultiSelect": false, "value": "1", "choices": [ { "title": "Red", "value": "1" }, { "title": "Green", "value": "2" }, { "title": "Blue", "value": "3" } ] }, { "type": "TextBlock", "text": "What colors do you want? *(isMultiSelect:true, style:compact)*" }, { "type": "Input.ChoiceSet", "id": "myColor3", "isMultiSelect": true, "value": "1,3", "style": "compact", "choices": [ { "title": "Red", "value": "1" }, { "title": "Green", "value": "2" }, { "title": "Blue", "value": "3" } ] }, { "type": "TextBlock", "text": "What colors do you want? *(isMultiSelect:true, style:expanded)*" }, { "type": "Input.ChoiceSet", "id": "myColor4", "isMultiSelect": true, "value": "1", "style": "expanded", "choices": [ { "title": "Red", "value": "1" }, { "title": "Green", "value": "2" }, { "title": "Blue", "value": "3" } ] } ], "actions": [ { "type": "Action.Submit", "title": "OK" } ] }
Try it Yourself ยป

Properties

choices

the choice options

  • Type: Input.Choice[]
  • Required: Yes

id

Id for the value (will be used to identify collected input when SUBMIT is clicked)

  • Type: string
  • Required: Yes

isMultiSelect

allow multiple choices to be selected

  • Type: boolean
  • Required: No, default: false

style

Style hint for Input.ChoiceSet

  • Type: string
  • Required: No
  • Allowed values:
    • "compact"
    • "expanded"

type

Must be Input.ChoiceInput

  • Type: "Input.ChoiceSet"
  • Required: No
  • Allowed values:
    • Input.ChoiceSet

value

The initial choice (or set of choices) that should be selected. For multi-select, specifcy a comma-separated string of values

  • Type: string
  • Required: No

spacing

Controls the amount of spacing between this element and the previous element.

  • Type: string
  • Required: No
  • Allowed values:
    • "none"
    • "small"
    • "default"
    • "medium"
    • "large"
    • "extraLarge"
    • "padding"

separator

The Separator object type describes the look and feel of a separation line between two elements.

  • Type: boolean
  • Required: No, default: false