Enum SelectionInputType

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

PropertyTypeDescription
CHECK_BOXEnumCheckbox input style. Default.
RADIO_BUTTONEnumRadio button input style. At most one item in the group can be selected.
DROPDOWNEnumDropdown menu selection input style.
SWITCHEnumA set of switches. Users can turn on one or more switches.
MULTI_SELECTEnumA multiselect menu for static or dynamic data.