URL input element
Allows user to enter a URL into a single-line field.
| Type | url_text_input |
| Available in | Modals, Home tab |
| Works in blocks | Input block |
Use the URL 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]:
{ "company_site": { "website": { "type": "url_text_input", "value": "https://northwind.example" } } }Before calling your app, Repzo checks that required inputs (input blocks without optional: true) are filled in and that the value is a valid http or https URL (“Enter a valid URL.”). 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 url_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 URL 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 URL input. Maximum length for the text in this field is 150 characters. |
Optional |
Examples
Section titled “Examples”A URL input in a form
Section titled “A URL input in a form”This example belongs in a modal view — the screenshot shows it in a modal.

{ "blocks": [ { "type": "input", "block_id": "company_site", "optional": true, "label": { "type": "plain_text", "text": "Company website" }, "element": { "type": "url_text_input", "action_id": "website", "placeholder": { "type": "plain_text", "text": "https://" } } } ]}