> For the complete documentation index, see [llms.txt](https://fig.gitbook.io/fig/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fig.gitbook.io/fig/interactive-runbooks-2/components/checkboxes.md).

# Checkboxes

`%[identifier: value ]{ default_value }`&#x20;

### Important

* A checkbox with a unique identifier outputs a boolean (true / false)
* Multiple checkboxes with the same identifier outputs an array of selected values

### **Examples**

```
### Checkbox with unique identifier = String
(Do not include placeholders)
%[test_1: ]{ true } Test 1
Test 1: {{ test_1 }}

%[test_2: ]{ false } Test 2
Test 2: {{ test_2 }}



### Multiple Checkboxes (same identifier) = Array
%[flags: --fast]{ false } fast
%[flags: --quiet]{ false } quiet
%[flags: --test]{ false } test

Flags: {{ flags }}
First Element: {{ flags[0] }}
{{flags && flags.includes("--quiet") ? "Quiet" : "Not Quiet"}}

All:
`fig acme {{flags ? flags.join(" ") : ""}}`


```

![](https://1545242415-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBzsiIfFzkblTOBPFTF%2F-MDDQV2Lmg_2QUioX_-K%2F-MDDVPEUvVMdXp76nG-9%2Fcheckboxes.gif?alt=media\&token=a36e92a8-fe7e-4336-a0b7-90d097cfbaff)
