# Флажки (Checkbox)

## Checkbox

```php
{
    "on" : "On Text",
    "off" : "Off Text",
    "checked" : true
}
```

В Voyager флажок преобразуется в тумблер, и, как видно выше, клавиша `on` будет содержать значение, когда тумблер включен, и `off` будет содержать значение, которое устанавливается, когда переключатель выключен. Если `checked` установлен в значение *true*, флажок будет включен; в противном случае по умолчанию он будет выключен.

## Multiple Checkbox

```php
{
    "checked" : true,
    "options": {
        "checkbox1": "Checkbox 1 Text",
        "checkbox2": "Checkbox 2 Text"
    }
}
```

Вы можете создать столько флажков, сколько захотите.

## Radio Button

```php
{
    "default" : "radio1",
    "options" : {
        "radio1": "Radio Button 1 Text",
        "radio2": "Radio Button 2 Text"
    }
}
```

Radio button точно такая же, как и dropdown. Вы можете указать `default`, если она не установлена, а в объекте `options` вы укажете *значение* опции **слева** и *текст*, который будет отображаться **справа**.


---

# 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://delphinpro.gitbook.io/voyager-ru/bread/formfields/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.
