> 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.md).

# Form Elements

## Summary

All form elements mostly follow the same pattern:&#x20;

* a **symbol** (like :, $, \* etc)
* **square brackets**:
  * an identifier: lets you refer to the selected value in [Templating & Interpolation](/fig/interactive-runbooks-2/templating-and-interpolation.md)
  * a placeholder value
* **curly braces**:
  * let you define a default value (or a list of options in the case of a dropdown)
  * uses Fig's [scripting language](/fig/interactive-runbooks-2/rundown-language.md)

```
^[identifier: placeholder ]{ script }
```

{% hint style="info" %}
**Note:** There should NEVER be a space between the square brackets and curly braces&#x20;
{% endhint %}

## Elements

**Click on each element to get more information + examples**

### [**Input / Text Field**](/fig/interactive-runbooks-2/components/input.md)

`:[identifier: placeholder ]{ defaultvalue }`

### [**Textarea**](/fig/interactive-runbooks-2/components/textbox.md)

`$[identifier: placeholder ]{ defaultvalue }`

### [**Dropdown**](/fig/interactive-runbooks-2/components/dropdown.md)

`^[id: placeholder ]{ array_of_options }`

### [**Checkboxes**](/fig/interactive-runbooks-2/components/checkboxes.md)

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

* If an identifier is used once, output is boolean
* If an identifier is used multiple times, output is an array of selected values.

### [**Buttons**](/fig/interactive-runbooks-2/components/buttons.md)

`+[identifier: "Button Label"]{ script that is run when button is clicked }`

* Using the button's identifier in mustache braces will show the output of the script to run
