---
url: /docs/8.x/guide/form-fields/check.md
---
# Check

Designate a checkbox field.

Class: `Code16\Sharp\Form\Fields\SharpFormCheckField`

## Configuration

### `setText(string $text)`

Set the text of the checkbox (its label). Note that the `SharpFormCheckField` constructor requires this attribute.

## Formatter

* `toFront`: casts whatever is provided as boolean.
* `fromFront`: return a boolean.
