Email input element
Allows user to enter an email into a single-line field.
| Type | email_text_input |
| Available in | Modals, Home tab |
| Works in blocks | Input block |
Use the email input inside an input block, in a modal or the Home tab. The value isn’t sent as it’s typed: when the person submits the modal, your app receives it in the view_submission payload under view.state.values[block_id][action_id]:
Before calling your app, Repzo checks that required inputs (input blocks without optional: true) are filled in and that the value looks like an email address (“Enter a valid email address.”). Problems are shown under the field and your app isn’t called.
With dispatch_action: true on the input block, the element also sends a block_actions payload with the same value when the person presses Enter, or as they type, depending on dispatch_action_config.
Fields
Section titled “Fields”| Field | Type | Description | Required? |
|---|---|---|---|
type |
String | The type of element. In this case type is always email_text_input. |
Required |
action_id |
String | An identifier for the input value when the parent view is submitted. You can use this when you receive a view_submission payload to identify the value of the input element (view.state.values[block_id][action_id]). Should be unique among all other action_ids in the containing block. Maximum length is 255 characters. If you leave it out, Repzo generates one. |
Optional |
initial_value |
String | The initial value in the email input when it is loaded. | Optional |
dispatch_action_config |
Dispatch action configuration object | A dispatch configuration object that determines when during text input the element returns a block_actions payload. Only used when the parent input block sets dispatch_action: true. Defaults to on_enter_pressed. |
Optional |
focus_on_load |
Boolean | Indicates whether the element will be set to auto focus within the view. Only one element can be set to true. Defaults to false. |
Optional |
placeholder |
Text object | A plain_text only text object that defines the placeholder text shown in the email input. Maximum length for the text in this field is 150 characters. |
Optional |
Examples
Section titled “Examples”An email input in a form
Section titled “An email input in a form”This example belongs in a modal view — the screenshot shows it in a modal.

{ "blocks": [ { "type": "input", "block_id": "billing_contact", "label": { "type": "plain_text", "text": "Billing contact email" }, "element": { "type": "email_text_input", "action_id": "email", "placeholder": { "type": "plain_text", } }, "hint": { "type": "plain_text", "text": "Invoices for this account are sent here." } } ]}