> For the complete documentation index, see [llms.txt](https://docs.zingy.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/checkbox.md).

# Checkbox

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FU705DCWmECIIPcztkRk9%2Fimage.png?alt=media&amp;token=e0f259e1-7000-4a30-a83e-1bb6e8888279" alt="" width="66"><figcaption><p>Checkbox Element</p></figcaption></figure></div>

The **`Checkbox`** element is a composite element consisting of an [Input](/app-editor/page-editor/built-in-elements/input.md) element and a [Label](/app-editor/page-editor/built-in-elements/label.md) element.

The included [Label](/app-editor/page-editor/built-in-elements/label.md) element is preconfigured with its [Associated Input ID](/app-editor/page-editor/built-in-elements/label.md#associated-input-id) set to the [Element ID](/app-editor/page-editor/page-element-settings.md#advanced-tab) of the included [Input](/app-editor/page-editor/built-in-elements/input.md) element.

{% hint style="warning" %}
[Checkbox](/app-editor/page-editor/built-in-elements/checkbox.md) and [Toggle Switch](/app-editor/page-editor/built-in-elements/toggle-switch.md) elements, used inside a Data Design element, need to be initialized using the [Initialize Toggle Switch in Data Design](/app-editor/page-flow/toolbox-blocks/initialize-toggle-switch-in-data-design.md) block, after they are added to the page or form.
{% endhint %}

***

## Options

The [Options tab](/app-editor/page-editor/page-element-settings.md#options-tab) settings for this element are described below:

{% hint style="danger" %}
We do not recommend changing any setting other than the one's mentioned below.
{% endhint %}

### `Title`

Enter the text you want displayed in the tooltip shown by the browser when a user hovers over the element.

### `Form Field Name`

If you are implementing a completely custom HTML form on your page, use this to set the value of the name attribute for this element.

### `Mandatory`

Set this to *yes* If you want to make sure a valid data is entered for this element. This is used in [forms](/app-editor/page-editor/working-with-forms.md) and can also be used if you are implementing a completely custom HTML form on your page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zingy.ai/app-editor/page-editor/built-in-elements/checkbox.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
