# checkbox

![](https://3491148959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-McfaOoX81ScSMpXsVTN%2F-MdlF3cJGdNAHti05Ljt%2F-MdlHvS1gN84ja77XxK8%2Fcheckbox-field.png?alt=media\&token=038b7226-0db3-47f1-a93a-006586c1f8ad)

```php
$this->addFormItem([
    'id' => 'is_active',
    'parent_id' => 'right-col',
    'type' => 'checkbox',
    'label' => __('Active'),
    'name' => 'is_active',
]);
```
