# bind

**Optional**

**Type**: Depends on the UI component. See table below.

**Default:** unset

A variable or field in which the data that is inputted in a component or selected by the user is stored.

UI components typically require the bound variable or field to be of a specific type. See the reference table below for details.

{% hint style="info" %}
Refer to the data model [field documentation](https://docs.journeyapps.com/reference/build/data-model-configuration/model/field) for details about each field type.
{% endhint %}

| UI component                                                                                                                        | Supported variable/field types                                                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [capture-coordinates](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/capture-coordinates)             | `location`                                                                                                                                                                               |
| [capture-file](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/capture-file)                           | `attachment`                                                                                                                                                                             |
| [capture-photo](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/capture-photo)                         | `photo`                                                                                                                                                                                  |
| [capture-signature](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/capture-signature)                 | `signature`                                                                                                                                                                              |
| [date-input](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/date-input)                               | `date`                                                                                                                                                                                   |
| [datetime-input](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/datetime-input)                       | `datetime`                                                                                                                                                                               |
| [display-3d-model](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/display-3d-model)                   | `attachment`                                                                                                                                                                             |
| [display-coordinates](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/display-coordinates)             | `location`                                                                                                                                                                               |
| [display-file](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/display-file)                           | `attachment`                                                                                                                                                                             |
| [display-image](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/display-image)                         | `photo`                                                                                                                                                                                  |
| [display-photo](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/display-photo)                         | `photo`                                                                                                                                                                                  |
| [display-signature](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/display-signature)                 | `signature`                                                                                                                                                                              |
| [multiple-choice-checklist](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/multiple-choice-checklist) | `multiple-choice` or `multiple-choice-integer`                                                                                                                                           |
| [object-dropdown](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/object-dropdown)                     | Must be the same type as the component's [`query`](https://docs.journeyapps.com/reference/build/all-ui-components/object-dropdown#query). Can be a single object or an array of objects. |
| [object-list](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/object-list)                             | Must be the same type as the component's [`query`](https://docs.journeyapps.com/reference/build/all-ui-components/object-list#query)                                                     |
| [object-table](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/object-table)                           | Must be the same type as the component's [`query`](https://docs.journeyapps.com/reference/build/all-ui-components/object-table#query)                                                    |
| [scan-barcode](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/scan-barcode)                           | `text`                                                                                                                                                                                   |
| [single-choice-dropdown](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/single-choice-dropdown)       | `single-choice`, `single-choice-integer`                                                                                                                                                 |
| [single-choice-radio](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/single-choice-radio)             | `single-choice`, `single-choice-integer`, `string`, `number` or `boolean`                                                                                                                |
| [text-input](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/text-input)                               | `text`, `integer`, `password` or `number`                                                                                                                                                |
| [toggle](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/toggle)                                       | `boolean`                                                                                                                                                                                |
|                                                                                                                                     |                                                                                                                                                                                          |
