> For the complete documentation index, see [llms.txt](https://laot7490.gitbook.io/ltbridge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laot7490.gitbook.io/ltbridge/ui-and-interaction/input/open.md).

# Open

Opens a text input dialog and returns the player's answers as a table.

{% hint style="info" %}
**Side:** Client · **Category:** Input · **API:** `LT.Input.Open`
{% endhint %}

## Example

```lua
local result = LT.Input.Open('Enter amount', {
    { type = 'number', label = 'Amount', name = 'amount' },
})
```

See [Input fields](/ltbridge/ui-and-interaction/input/input-data.md) for the full data table.

## Parameters

| Name         | Required | Description                                                                                                                                                 |
| ------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `header`     | Yes      | Title of input dialog                                                                                                                                       |
| `data`       | Yes      | Data table (`{ inputs = .. }` for QB; ox field array or `{ inputs = .. }` otherwise) — see [Input fields](/ltbridge/ui-and-interaction/input/input-data.md) |
| `isQB`       | No       | If data table is sent with QB format set to true, default: false                                                                                            |
| `submitText` | No       | Submit button text, only for `qb-input`                                                                                                                     |

## Returns

* `table|nil`
