# 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


---

# 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://fig.gitbook.io/fig/interactive-runbooks-2/components.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.
