> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fapost.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Forms

> Building a form an assistant's flows send, translating it, and what saving a version means.

A form collects several answers on one screen instead of one message per answer. An
assistant owns its forms; its flows send them. This page covers building a form. Sending
one from a flow is not available yet.

## The list

**Forms** sits in the assistant's menu, next to the flows. Each form shows its **name**,
how many **fields** it has, its **version**, and when it was last **updated**.

**New form** asks for a name, creates the form with one text field, and opens it in the
form editor. **Edit** opens the editor; **Delete** removes the form together with every
version of it.

## The editor

The form editor opens in the builder, like a flow. The **Fields** tab has three parts:

* the list of fields on the left — add a field with **Add field**, move one up or down,
  remove one;
* the settings of the selected field in the middle;
* a preview on the right, drawn the way a contact will see the form. Answers typed into the
  preview are not saved.

Every field has a **label** and may be **required**. What else it offers depends on its
type:

| Type | Settings |
| - | - |
| **Text** | Placeholder, minimum and maximum length, a pattern (a PCRE regular expression with its delimiters, such as `/^[A-Z]{2}[0-9]{6}$/`) |
| **Number** | Placeholder, minimum, maximum, whole numbers only |
| **Email** | Placeholder |
| **Phone** | Placeholder, a default country (ISO code such as `UA`) for numbers given without the `+` prefix |
| **Date** | — |
| **Choice** | Placeholder, the options to choose from |
| **Checkbox** | — |

A form needs at least one field, and a choice at least one option. The editor marks what
it would refuse as you type; the server checks the form again when you save, and a refused
setting is shown next to its field.

## Languages

Texts — labels, placeholders and the options of a choice — are written in the workspace's
base language on the **Fields** tab. When the workspace uses more than one language, the
**Translations** tab lists every text of the form with how many of its languages are filled
in, and gives a field per language. A text left untranslated shows the base-language text.

What a contact's answer to a choice holds does not depend on the language: renaming or
translating an option does not change the answers to it.

## Versions

Every save that changes the fields writes a new **version** of the form; renaming the form
alone does not. Earlier versions are kept, so a form that was already sent is read against
the fields the contact saw.

If someone else saved the form while you were editing it, your save is refused and your
changes stay in the editor. Reload to see their version — saving after that replaces it.

## Who can use forms

Forms need the **Manage forms** permission and an assignment to the form's assistant; see
[Roles and permissions](https://docs.fapost.in/using/roles-and-permissions.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.