> For the complete documentation index, see [llms.txt](https://knowledgebase.qommentary.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.qommentary.com/qommentary-writeback/custom-data/adding-input-columns/checkbox.md).

# Checkbox

**Checkbox** controls are ideal for defining binary values with a choice between one of two possible mutually exclusive options (e.g. yes/no).

**Data type**: `boolean`

### Adding a Checkbox control

1\. Edit your sheet\
2\. Click on the **Qommentary Writeback** extension\
3\. Expand **Input Column** section\
4\. Click on **Add column**&#x20;

<div align="left"><img src="/files/-MZCx6ezSPuMpGDkleyH" alt=""></div>

5\. Select **Switch** from the dropdown menu

<div align="left"><img src="/files/-MZO5Kxd7TiLErDBpYmD" alt=""></div>

6\. Add a **label** to be displayed as a column header

<div align="left"><img src="/files/-MZO5Wj8Lrit32iOZtLy" alt=""></div>

7\. Add a **field** name

<div align="left"><img src="/files/-MZO5iYGZtd1bVWelHI1" alt=""></div>

{% hint style="danger" %}
If database is selected as data connection, then field name **must map** to destination table column name.
{% endhint %}

{% hint style="warning" %}
Field name cannot contain spaces.
{% endhint %}

8\. Click on **Done**

**Checkbox** input column can now be updated and saved.

![](/files/-MZBtm--FfbJYCuRFiS5)
