{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":5249,"path":"conversational-interfaces/virtual-agent/va-grouped-choice-user-input.md","title":"Grouped Choice user input control","bundle":null,"doc_type":null,"release":"australia","body":"\n# Grouped Choice user input control\n\nUse the Grouped Choice user input control in a Virtual Agent topic to list multiple groups of choices in one message.\n\n## Grouped Choice list display\n\nThe Grouped Choice list prompts users to select related choices in one message through the default **Select a choice** button. You can enable multi-select for each choice's group and also provide images and short descriptions to create a richer user experience. Users are presented with groups of choices where they're required to submit one selection before returning to the Virtual Agent topic.\n\nInputs are recorded on the Interactions \\[interactions\\] table. For more information, see [Virtual Agent interaction records](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/va-interactions.md).\n\n## Grouped Choice user input control properties\n\n<table id=\"table_nff_y1b_3db\"><thead><tr><th>\n\nProperty\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nNode name\n\n</td><td>\n\nName that identifies this Grouped Choice user control node in the topic flow.\n\n</td></tr><tr><td>\n\nPrompt\n\n</td><td>\n\nPrompt or question for the user. The prompt can be either a text string or a script that returns text. For example: `Please select your meal preference.`\n\n</td></tr><tr><td>\n\nGroup name\n\n</td><td>\n\nName that identifies the grouped choice list in the property sheet. Add one \\(required\\) or multiple groups of related choices. Users must select one choice out of all groups.Use short phrases in your choice lists.\n\n</td></tr><tr><td>\n\nChoices\n\n</td><td>\n\nNumber of choices added to each group.\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nAdd a group of choices dialog box\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nThis dialog box only appears after **Add** is selected.\n\n</td></tr><tr><td>\n\nGroup name\n\n</td><td>\n\nName that identifies the grouped choice list in the property sheet. A limit of 40 characters for choice list labels exists. The **Variable name** field is automatically generated from the group name. This read-only variable name appears in all lower-case text and substitutes any spaces in the group name for underscores. If multiple lists with the same name exist, the variable name is appended with `_1`, `_2`, `_3`, and so on. Use this variable in your conversation flow to retrieve user responses for each group within the Grouped Choice node.\n\n</td></tr><tr><td>\n\nDisplay as\n\n</td><td>\n\nGroup heading title that appears in the rendered client.\n\n</td></tr><tr><td>\n\nDisplay name\n\n</td><td>\n\nChoice name that is displayed to users. At least two unique choices are required.\n\n</td></tr><tr><td>\n\nValue\n\n</td><td>\n\nString that is stored in the variable when the corresponding choice is selected. This value is automatically generated from the display name, but you can edit the field as needed.\n\n</td></tr><tr><td>\n\nImage\n\n</td><td>\n\nOption to an add image for the choice.Individual choice images are entered after you select **Add details**.\n\n To set this field, do one of the following:\n\n-   Specify the URL link by either entering the link text, using a data pill, or using a script.\n-   Upload an image file by selecting **Upload Image**.\n\n</td></tr><tr><td>\n\nDescription\n\n</td><td>\n\nOption to provide additional information about the choice.\n\n Individual choice descriptions are entered after you select **Add details**.\n\nFor example: If the grouped choice list is about passengers selecting airplane amenities, like headphones, you could include a description about the type of headphones such as `Over-ear wired headphones`.\n\n</td></tr><tr><td>\n\nAllow the user to select more than one choice\n\n</td><td>\n\nOption to allow users to choose multiple options from the choice list by selecting **Yes**.\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nAdvanced\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nCustomize group selection\n\n</td></tr><tr><td>\n\nUpdate title\n\n</td><td>\n\nOption to customize the title of the grouped choice's prompt button. A limit of 40 characters for choice list labels exists. If this field is left empty, the default title that users see is `Select a choice`.\n\n</td></tr><tr><td>\n\nImage\n\n</td><td>\n\nOption to add an image for the grouped choice's prompt button.To set this field, do one of the following:\n\n-   Specify the URL link by either entering the link text, using a data pill, or using a script.\n-   Upload an image file by selecting **Upload Image**.\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nConfirmation messages\n\n</td></tr><tr><td>\n\nInput completion confirmation\n\n</td><td>\n\nBot response shown to the user when the node interaction is complete. The message can be either a text string or a script that returns text. For example, if you're using dot-walking: `Thanks, (Input Variables > Username)!` Or if you're using a script, the acknowledgement might be: `Thanks, {{vaInputs.username}}!`.\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nHide this node\n\n</td></tr><tr><td>\n\nConditionally show this node if\n\n</td><td>\n\nNo-code condition statement or low-code script that specifies a condition for presenting this node in the conversation. The condition must evaluate to true.\n\n</td></tr></tbody>\n</table>## Example Grouped Choice user input control\n\n**Note:** Asset library controls may display and function differently in other channels.\n\n<table id=\"table_f1f_v2p_xdb\"><thead><tr><th>\n\nInput properties\n\n</th><th>\n\nList prompt\n\n</th></tr></thead><tbody><tr><td>\n\n\\[Omitted image \"va-grouped-choice-properties-sheet.png\"\\] Alt text: Basic properties include the node name, prompt, and the list of possible choices.\n\n \n\n\\[Omitted image \"va-grouped-choice-dialog-box.png\"\\] Alt text: Group choice properties include an internal name and the way this group should display to the user. Each choice consists of a name, value, image, and description.\n\n</td><td>\n\n\\[Omitted image \"va-grouped-choice-default-button.png\"\\] Alt text: A chat window displays the default \"Select a choice\" button. The list of choices appears when the user selects it.\n\n \\[Omitted image \"va-grouped-choice-customized-button.png\"\\] Alt text: A chat window displays a custom button. It reads, \"Select flight information\" and includes a photo of an airplane.\n\n \\[Omitted image \"va-grouped-choice-user-example.png\"\\] Alt text: An example list of choices. The first prompts the user to select the class type for their flight. The second asks the user to select a meal type.\n\n</td></tr></tbody>\n</table>## Channel support\n\n|Channel|Support|Constraints|\n|-------|-------|-----------|\n|Web UI|Supported|None|\n|Mobile UI|Not supported|Not applicable|\n|ServiceNow Otto panel|Supported|None|\n|Microsoft Teams|Not supported|Not applicable|\n|Google Chat|Not supported|Not applicable|\n|Slack|Not supported|Not applicable|\n|Workplace|Not supported|Not applicable|\n|Facebook Messenger|Not supported|Not applicable|\n|SMS Twilio|Not supported|Not applicable|\n|LINE|Not supported|Not applicable|\n|WhatsApp \\(powered by Twilio\\)|Not supported|Not applicable|\n|WhatsApp|Not supported|Not applicable|\n|Apple Messages for Business|Not supported|Not applicable|\n|Alexa \\(Voice\\)|Not supported|Not applicable|\n\n**Parent Topic:**[Assistant Designer user input controls](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/va-user-inputs.md)\n\n"}}