I have a form with multiple inputs on Slack. Radio buttons appear to work as 'Submit' buttons.
I want to send the form at the end when pressing the Submit button.
Code example:
{
"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"
}
]
}
]
}
How can I disable radio buttons from acting as submit buttons?