Skip to content

Dispatch action configuration object

Defines when a text input element sends a block_actions interaction payload while the reader is still typing.

Used in Plain-text input element, Email input element, URL input element, Number input element, Rich text input element

Set it as the input element’s dispatch_action_config. It only takes effect when the input block around the element has dispatch_action: true; otherwise the value only reaches your app when the form is submitted.

Field Type Description Required?
trigger_actions_on String[] Which interactions send a block_actions payload. One or both of: on_enter_pressed — sent when the reader presses Enter while the input has focus; on_character_entered — sent when a character is typed or removed. Defaults to on_enter_pressed. Optional

This example belongs in a modal view.

{
"blocks": [
{
"type": "input",
"dispatch_action": true,
"label": {
"type": "plain_text",
"text": "Find an account"
},
"element": {
"type": "plain_text_input",
"action_id": "account_search",
"placeholder": {
"type": "plain_text",
"text": "Company name or VAT number"
},
"dispatch_action_config": {
"trigger_actions_on": [
"on_character_entered"
]
}
}
}
]
}