Combine message menu and message button in slack

▼魔方 西西 提交于 2019-12-12 20:17:21

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!