问题
I want to combine message menu and message button in my slack app.This is the workflow I am trying to achieve.
1) User fires a slack slash command to display the menu. This menu will have one dropdown and three buttons. This I am able to achieve.
2) I want user to select an option from dropdown and press any of the action button.Then only the action should be triggered
Problem is that when i select any option from dropdown, it triggers the action. I do not want the action to be triggered this way. I just want the action to be triggered after clicking on the button
回答1:
What you are asking is not possible with Slack. Clicking an option in an interactive menu will always issue an action.
Instead I would suggest to implement the workflow in two steps. First show the buttons and then the menu (or other way around).
回答2:
https://api.slack.com/docs/message-menus
You can mix message buttons and message menus within the same message by including multiple attachments
来源:https://stackoverflow.com/questions/46304590/combine-message-menu-and-message-button-in-slack