# Checkbox

<div align="left"><figure><img src="/files/WLR7mSBiQRXsLIvGfnUA" 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
