Schema Explorer

Input.ChoiceSet

Allows a user to input a Choice.

Property Type Required Description Version
choices Input.Choice[] Yes Choice options. 1.0
id string Yes Unique identifier for the value. Used to identify collected input when the Submit action is performed. 1.0
isMultiSelect boolean No, default: false Allow multiple choices to be selected. 1.0
style string No, default: "compact" Style hint for Input.ChoiceSet. 1.0
type "Input.ChoiceSet" Yes Must be "Input.ChoiceSet". 1.0
value string No The initial choice (or set of choices) that should be selected. For multi-select, specify a comma-separated string of values. 1.0
spacing string No Controls the amount of spacing between this element and the preceding element. 1.0
separator boolean No, default: false When true, draw a separating line at the top of the element. 1.0

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

Choice options.

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

id

Unique identifier for the value. Used to identify collected input when the Submit action is performed.

  • 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, default: "compact"
  • Allowed values:
    • "compact"
    • "expanded"

type

Must be "Input.ChoiceSet".

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

value

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

  • Type: string
  • Required: No

spacing

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

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

separator

When true, draw a separating line at the top of the element.

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