# Adaptive Card sample: Input.ChoiceSet

- id: `choiceset`
- Adaptive Card schema version: 1.3

Compact / expanded single-select and multi-select choice inputs with Action.Submit.

## Elements

- `Input.ChoiceSet` — style: compact, isMultiSelect: false
- `Input.ChoiceSet` — style: expanded, isMultiSelect: false
- `Input.ChoiceSet` — style: compact, isMultiSelect: true
- `Input.ChoiceSet` — style: expanded, isMultiSelect: true
- `Action.Submit` — déclenche le POST /submit

## Card JSON

```json
{
  "type": "AdaptiveCard",
  "version": "1.3",
  "body": [
    {
      "type": "Input.ChoiceSet",
      "id": "myColor",
      "style": "compact",
      "label": "Compact single select",
      "isMultiSelect": false,
      "value": "1",
      "choices": [
        {
          "title": "Red",
          "value": "1"
        },
        {
          "title": "Green",
          "value": "2"
        },
        {
          "title": "Blue",
          "value": "3"
        }
      ]
    },
    {
      "type": "Input.ChoiceSet",
      "id": "myColor2",
      "style": "expanded",
      "label": "Expanded single select",
      "isMultiSelect": false,
      "value": "1",
      "choices": [
        {
          "title": "Red",
          "value": "1"
        },
        {
          "title": "Green",
          "value": "2"
        },
        {
          "title": "Blue",
          "value": "3"
        }
      ]
    },
    {
      "type": "Input.ChoiceSet",
      "id": "myColor3",
      "isMultiSelect": true,
      "value": "1,3",
      "style": "compact",
      "label": "Compact multiselect",
      "choices": [
        {
          "title": "Red",
          "value": "1"
        },
        {
          "title": "Green",
          "value": "2"
        },
        {
          "title": "Blue",
          "value": "3"
        }
      ]
    },
    {
      "type": "Input.ChoiceSet",
      "id": "myColor4",
      "isMultiSelect": true,
      "value": "1",
      "style": "expanded",
      "label": "Expanded multiselect",
      "choices": [
        {
          "title": "Red",
          "value": "1"
        },
        {
          "title": "Green",
          "value": "2"
        },
        {
          "title": "Blue",
          "value": "3"
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.Submit",
      "title": "OK"
    }
  ]
}
```

## Template data

```json
{
  "choices": [
    {
      "title": "Red",
      "value": "1"
    },
    {
      "title": "Green",
      "value": "2"
    },
    {
      "title": "Blue",
      "value": "3"
    }
  ]
}
```
