The format of the items that users can select. Different options support different types of
interactions. For example, users can select multiple checkboxes, but can only select one item
from a dropdown menu.
Each selection input supports one type of selection. Mixing checkboxes and switches, for
example, isn't supported.
Available for Google Chat apps and Google Workspace add-ons.
To call an enum, you call its parent class, name, and property. For example,
CardService.SelectionInput.CHECK_BOX.
Properties
Property
Type
Description
CHECK_BOX
Enum
Checkbox input style. Default.
RADIO_BUTTON
Enum
Radio button input style. At most one item in the group can be selected.
DROPDOWN
Enum
Dropdown menu selection input style.
SWITCH
Enum
A set of switches. Users can turn on one or more switches.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-30 UTC."],[[["`SelectionInputType` dictates how users interact with selectable items, such as choosing single or multiple options through checkboxes, radio buttons, dropdowns, switches, or multi-select menus."],["Each selection input element supports a single selection type, and combining different types like checkboxes and switches within the same element is not allowed."],["This feature is available for use in Google Chat apps and Google Workspace Add-ons."],["To specify a selection type, use the `CardService.SelectionInput` enum followed by the desired property, for instance, `CardService.SelectionInput.CHECK_BOX` for checkboxes."]]],["Users can select items in various formats, including `CHECK_BOX`, `RADIO_BUTTON`, `DROPDOWN`, `SWITCH`, and `MULTI_SELECT`. Each selection input supports only one style, and mixing styles is unsupported. Checkboxes and switches allow multiple selections, while radio buttons and dropdowns are limited to single selections. `MULTI_SELECT` is used for multiselect options. This is applicable to Google Chat apps and Google Workspace add-ons. Each selection style can be called by it's parent class, name and property.\n"]]