我在 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"
}
]
}
]
}
如何禁用单选按钮充当提交按钮?