external_select_menu: External Data Source Select Menu Element

View source: R/block_elements.R

external_select_menuR Documentation

External Data Source Select Menu Element


This menu will load its options from an external data source, allowing for a dynamic list of options. Each time a select menu of this type is opened or the user starts typing in the typeahead field, we'll send a request to your specified URL. Your app should return an HTTP 200 OK response, along with an application/json post body with an object containing either an option_object list, or an option_groups list. A select menu, just as with a standard HTML <select> tag, creates a drop down menu with a list of options for a user to choose. The select menu also includes type-ahead functionality, where a user can type a part or all of an option string to filter the list. To use interactive components, you will need to make some changes to prepare your app. Read our guide to enabling interactivity. Works with block types: Section Actions Input


  min_query_length = NULL,
  initial_option = NULL,
  confirm = NULL



A plain_text only text_object that defines the placeholder text shown on the menu. Maximum length for the text in this field is 150 characters.


An identifier for the action triggered when a menu option is selected. You can use this when you receive an interaction payload to identify the source of the action. Should be unique among all other action_ids in the containing block. Maximum length for this field is 255 characters.


When the typeahead field is used, a request will be sent on every character change. If you prefer fewer requests or more fully ideated queries, use the min_query_length attribute to tell Slack the fewest number of typed characters required before dispatch. The default value is 3.


A single link{option_object} that exactly match one or more of the options within options or option_groups. This option will be selected when the menu initially loads.


A confirm_object that defines an optional confirmation dialog that appears before the select choices are submitted.

See Also


Other Elements: button_element(), channels_multi_select_menu(), channels_select_menu(), checkbox_element(), conversations_multi_select_menu(), conversations_select_menu(), datepicker_element(), external_multi_select_menu(), image_element(), overflow_menu_element(), plain_text_input_element(), radio_button_group_element(), static_multi_select_menu(), static_select_menu(), timepicker_element(), users_multi_select_menu(), users_select_menu()

samterfa/slackme documentation built on April 11, 2022, 3:29 a.m.