# Connecting Labels to Input Controls

Input Web Controls, such as but not limited to the [Text Input](../../web-controls/text-input-web-control), [Dropdown List](../../web-controls/dropdown-list-web-control), and [Checkbox](../../web-controls/checkbox-web-control) Web Controls, are used to gather input from end users. You can tie Input Web Controls to Labels using an input ID, so that when a label is selected in the application, the associated input will become in focus in your app.

Connecting Labels to Input Web Controls is done by assigning both the relevant Label and the relevant Input Web Control the same **Input ID**. You can define an Input ID as string.

For example, consider the Checkbox in the following example. It has been given the Input ID "sample-checkbox":

![](https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-977028cf994aff4caf93acd58924cae14c8b6c23%2Fconnecting-labels-to-input-controls-v184-0.png?alt=media)

The "Click me!" Label next to this checkbox has been assigned the same Input ID. Note that the format of the "Click me!" Label is designated **label**. The value of the **Format** field must be set to **label** in order for a Label to be successfully bound to an Input Web Control:

![](https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-5f4e65d50a0738da5bdacd0ac2e3b01322705348%2Fconnecting-labels-to-input-controls-v184-1.png?alt=media)

Now when going through the application flow, the Checkbox can be selected by clicking on it directly, or by clicking on the "Click me!" Label:

<figure><img src="https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-6013dd2a1dd1974708820370a592465466403af5%2Fconnecting-labels-to-input-controls-v184-2.gif?alt=media" alt="" width="200"><figcaption></figcaption></figure>

By matching Input IDs in this way, a single Input Web Control can be associated with any number of Labels.
