> For the complete documentation index, see [llms.txt](https://developer.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.collibra.com/workflows/designing-workflows/forms/form-expressions.md).

# Form expressions

Form expressions allow you to bind form components together to define a specific behavior. You can also use them for the majority of attributes and they are defined using double curly braces and a variable name, such as `{{form_expression}}`.

When you select any form component that is visible on the canvas, you are able to enter a value in the attribute bar on the right side of the canvas. The value option is mandatory. If you specify a form label or name right after adding the form component to the canvas, the value is added automatically for you.

You can then use variables with form expressions to build dependencies between form components.

{% hint style="info" %}
Arrays always evaluate to `true` even if the array is empty so the result of `{{checkBoxGroup ? 'yes' : 'no'}}` is *yes*. To build a condition on whether an array is empty, check the length, for example `{{checkBoxGroup.length > 0 ? 'yes' : 'no'}}` is *no* for an empty array.
{% endhint %}

Some of the options available in the attribute bar allow you to switch between simple and expression modes. For example, the **Required** option available in the attribute bar is by default in the normal mode. However, if you would like to mark a certain field as required based on a given condition you can click the lightning bolt icon next to the **Required** option label to switch to the expression mode.

<img src="/files/JuQ5LGT63LM31Zhucu5a" alt="" width="75%">


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://developer.collibra.com/workflows/designing-workflows/forms/form-expressions.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.
