> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.pdfgeneratorapi.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Checkbox & Radio Button Component

The **Checkbox** and **Radio Button** components are visual elements used to represent binary states or choices. The checked state is controlled by a boolean value, using either **true** or **false**, or numeric equivalents **1** or **0**, to indicate whether the component should appear checked or unchecked.

If you want to allow users to check or change options after the PDF is generated, you can enable the **Render as an editable field** option in the **Advanced** tab, which makes the components editable directly in the final document.
---

### Checkbox Component

${frame}[Checkbox Component](https://www.loom.com/embed/0cefbcaa7b7148d4800c3610329c58f1)

### Radio Button Component

To create a group of radio buttons where only one option can be selected, use the [Container](/en/article/container-component-5fi9zb/) component to iterate over your data and place the Radio Button component inside it as a subcomponent.

${frame}[Radio Button Group Setup](https://www.loom.com/embed/dce9bcb6bc704a798e0772d47024c900)
---

### Advanced Tab

The **Advanced** tab of the Checkbox and Radio Button components offers these options:

* **Unique identifier** – Assigns a unique identifier to the component, which makes it easy to find and update via the API and to navigate to in the Components list.
* **Lock position** – Locks the component in a defined position, preventing it from being affected by other components and ensuring it doesn't affect them.
* **Render as an editable field** – Renders the component as an editable field, allowing users to change it directly in the generated PDF.
---
### Related articles you may find helpful

* [Batch Document Generation: How to generate a document using multiple templates](/en/article/batch-document-generation-how-to-generate-a-document-using-multiple-templates-1e75kbb/)
* [How to connect my template with data?](/en/article/how-to-connect-my-template-with-data-r8vfc6/)
* [Supported operators](/en/article/supported-operators-1g0y3zu/)