Stay organized with collections
Save and categorize content based on your preferences.
SelectionInputType
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 2024-10-31 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."]]],[]]