【发布时间】:2021-12-06 19:09:04
【问题描述】:
我在 Slack 上有一个包含多个输入的表单。 单选按钮似乎用作“提交”按钮。
我想在最后按提交按钮时发送表单。
代码示例:
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Section block with radio buttons"
},
"accessory": {
"type": "radio_buttons",
"options": [
{
"text": {
"type": "plain_text",
"text": "Option1",
"emoji": true
},
"value": "value-0"
},
{
"text": {
"type": "plain_text",
"text": "Option2",
"emoji": true
},
"value": "value-1"
}
],
"action_id": "radio_buttons-action"
}
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "Submit",
"emoji": true
},
"value": "click_me_123",
"action_id": "actionId-0"
}
]
}
]
}
如何禁用单选按钮充当提交按钮?
【问题讨论】:
-
你所说的“看起来像'提交'按钮”是什么意思?我真的不认为为此触发了提交按钮的代码
-
正在触发对我们后端的请求。显然,这是默认行为,无法更改。我从他们的支持团队那里得到了答复。我会发布这个问题的答案
标签: slack slack-api slack-block-kit