Reference documentation and code samples for the Google Apps Chat V1 Client class SelectionType.
The format for 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.
Google Workspace Add-ons and Chat
apps:
Protobuf type google.apps.card.v1.SelectionInput.SelectionType
Namespace
Google \ Apps \ Card \ V1 \ SelectionInput
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
CHECK_BOX
Value: 0
A set of checkboxes. Users can select one or more checkboxes.
Generated from protobuf enum CHECK_BOX = 0;
RADIO_BUTTON
Value: 1
A set of radio buttons. Users can select one radio button.
Generated from protobuf enum RADIO_BUTTON = 1;
PBSWITCH
Value: 2
A set of switches. Users can turn on one or more switches.
Generated from protobuf enum SWITCH = 2;
DROPDOWN
Value: 3
A dropdown menu. Users can select one item from the menu.
Generated from protobuf enum DROPDOWN = 3;
MULTI_SELECT
Value: 4
A multiselect menu for static or dynamic data. From the menu bar,
users select one or more items. Users can also input values to populate
dynamic data. For example, users can start typing the name of a Google
Chat space and the widget autosuggests the space.
To populate items for a multiselect menu, you can use one of the
following types of data sources:
Static data: Items are specified as SelectionItem objects in the
widget. Up to 100 items.
Google Workspace data: Items are populated using data from Google
Workspace, such as Google Workspace users or Google Chat spaces.
External data: Items are populated from an external data
source outside of Google Workspace.
For examples of how to implement multiselect menus, see
Add a multiselect
menu.
Google Workspace Add-ons and Chat
apps:
Multiselect for Google Workspace Add-ons are in
Developer Preview.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class SelectionType (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Card.V1.SelectionInput.SelectionType)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Card.V1.SelectionInput.SelectionType)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Card.V1.SelectionInput.SelectionType)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Card.V1.SelectionInput.SelectionType)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Card.V1.SelectionInput.SelectionType)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Card.V1.SelectionInput.SelectionType)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Card.V1.SelectionInput.SelectionType)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Card.V1.SelectionInput.SelectionType)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Card.V1.SelectionInput.SelectionType)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Card.V1.SelectionInput.SelectionType)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Card.V1.SelectionInput.SelectionType)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Card.V1.SelectionInput.SelectionType) \nReference documentation and code samples for the Google Apps Chat V1 Client class SelectionType.\n\nThe format for the items that users can select. Different options support\ndifferent types of interactions. For example, users can select multiple\ncheckboxes, but can only select one item from a dropdown menu.\n\nEach selection input supports one type of selection. Mixing checkboxes\nand switches, for example, isn't supported.\n[Google Workspace Add-ons and Chat\napps](https://developers.google.com/workspace/extend):\n\nProtobuf type `google.apps.card.v1.SelectionInput.SelectionType`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Card \\\\ V1 \\\\ SelectionInput\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### CHECK_BOX\n\n Value: 0\n\nA set of checkboxes. Users can select one or more checkboxes.\n\nGenerated from protobuf enum `CHECK_BOX = 0;`\n\n### RADIO_BUTTON\n\n Value: 1\n\nA set of radio buttons. Users can select one radio button.\n\nGenerated from protobuf enum `RADIO_BUTTON = 1;`\n\n### PBSWITCH\n\n Value: 2\n\nA set of switches. Users can turn on one or more switches.\n\nGenerated from protobuf enum `SWITCH = 2;`\n\n### DROPDOWN\n\n Value: 3\n\nA dropdown menu. Users can select one item from the menu.\n\nGenerated from protobuf enum `DROPDOWN = 3;`\n\n### MULTI_SELECT\n\n Value: 4\n\nA multiselect menu for static or dynamic data. From the menu bar,\nusers select one or more items. Users can also input values to populate\ndynamic data. For example, users can start typing the name of a Google\nChat space and the widget autosuggests the space.\n\nTo populate items for a multiselect menu, you can use one of the\nfollowing types of data sources:\n\n- Static data: Items are specified as `SelectionItem` objects in the widget. Up to 100 items.\n- Google Workspace data: Items are populated using data from Google Workspace, such as Google Workspace users or Google Chat spaces.\n- External data: Items are populated from an external data source outside of Google Workspace. For examples of how to implement multiselect menus, see [Add a multiselect\n menu](https://developers.google.com/workspace/chat/design-interactive-card-dialog#multiselect-menu). [Google Workspace Add-ons and Chat\n apps](https://developers.google.com/workspace/extend): Multiselect for Google Workspace Add-ons are in Developer Preview.\n\nGenerated from protobuf enum `MULTI_SELECT = 4;`"]]