Search code examples
multi-selectslackslack-apislack-commands

Does Slack app support Multi Select dropdown in their message menus?


I'm creating a Slack app, where I want to provide Multi Select dropdowns for the Users to select. But, I don't see any documentation for Multi Select on https://api.slack.com/. If it is not available, is there a workaround for it ?


Solution

  • it seems now its possible... Check the block kit:

    enter image description here

        {
        "blocks": [
            {
                "type": "section",
                "text": {
                    "type": "mrkdwn",
                    "text": "Pick one or more items from the list"
                },
                "accessory": {
                    "type": "multi_static_select",
                    "placeholder": {
                        "type": "plain_text",
                        "text": "Select an item",
                        "emoji": true
                    },
                    "options": [
                        {
                            "text": {
                                "type": "plain_text",
                                "text": "Choice 1",
                                "emoji": true
                            },
                            "value": "value-0"
                        },
                        {
                            "text": {
                                "type": "plain_text",
                                "text": "Choice 2",
                                "emoji": true
                            },
                            "value": "value-1"
                        }
                    ],
                     "action_id": "create_feedback_final_step"
                }
            }
        ]
    }
    

    Use this block with action_id for getting all the inputs that the user selected!