# Groups

Groups can be added like any other question, just drag the group question into your form:

![](/files/lBjxFGw9suY8UOtFzOI4)

Once dropped, type the group header (required) and click "Edit Group" to enter the group editing mode:

![](/files/8gUjQmApvvUvxN3cN03s)

{% hint style="warning" %}
**You MUST type a header to enable the edit button!**
{% endhint %}

In group edit mode, just drag any input as usual. You **CANNOT** have a group within a group. You can have branches though.

{% hint style="warning" %}
A group MUST have at least one question to be valid.
{% endhint %}

{% hint style="warning" %}
Moreover, you **CANNOT** have JUMP(s) within a GROUP.
{% endhint %}

To exit the group edit mode, click the left arrow on the top left, to go back to the usual hierarchy form editing:

![](/files/pfSvbuoemtcEwqqBi70O)

Using GROUP(s) it is possible to add matrix style questions to your form(s). [**See how**](/common-use-cases/matrix.md)**.**


---

# 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://docs.epicollect.net/formbuilder/groups.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.
