# Sources

The sources section helps you prepare an option list for an input. There are 2 types of sources,

| Type    | Description                                   |
| ------- | --------------------------------------------- |
| static  | pre-defined and fixed option list             |
| dynamic | request a dynamic option list via an API call |

### Create Source <a href="#create-source" id="create-source"></a>

![mini-app2](https://docs.uchat.com.au/assets/img/app2-57.8ba3ec27.png)

Follow steps 1 to 7 in the above screenshot to create a source and start editing. Once a source type is selected, you are unable to change it.

### Static Source <a href="#static-source" id="static-source"></a>

![mini-app2](https://docs.uchat.com.au/assets/img/app2-58.334f5488.png)

Click on **Add Item** to add as many options as needed. The label is what to display to users and the value is what will be actually stored in the app field.

### Dynamic Source <a href="#dynamic-source" id="dynamic-source"></a>

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F626j3JJ1StPHpMd0F5ke%2Fapp2-59.49b63d94.png?alt=media&#x26;token=236543dc-df65-43c9-bd9f-525d648c293c" alt=""><figcaption></figcaption></figure>

Configure the [external request](https://docs.rapidbott.com/help-center/flow-builder/advanced-actions/external-request) to get the option list.

Specify the path for the whole list first, and the **relative** paths for getting the value and label in each item of the list.

### Use Source <a href="#use-source" id="use-source"></a>

Sources can be used wherever you edit an input item:

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FOZlfjnHgwvsKZ8oCQm1L%2Fapp2-60.7add4b03.png?alt=media&#x26;token=e236eca8-79b9-4396-b8fa-ee3c462d84b2" alt=""><figcaption></figcaption></figure>

Choose **Select** in the input type and pick a source in the drop-down list.

This is the user interface for a static source and dynamic source in a web form:

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2F2zze1gO7ygNCcEt3tfks%2FUntitled.png?alt=media&#x26;token=5ca54e3a-b5ae-422e-901c-e760f5984464" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2144409983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHbDmB8MlZRo4hzrDiO0X%2Fuploads%2FmTJ4NqGPrypeqj5e5RMu%2Fapp2-62.111dcee3.png?alt=media&#x26;token=7ad78a34-5c54-4ff5-8468-f8c778e04f0b" alt=""><figcaption></figcaption></figure>
