# Fields

Write a field where its value belongs, in Word or Markdown. It becomes typed data that the right person fills.


## Markers {#markers}

A field is written in double braces where its value should appear:

| Marker | Meaning |
| --- | --- |
| `{{Venue}}` | a text field the sender fills |
| `{{Event date:date}}` | a typed field (here a date) |
| `{{Client name@client}}` | filled by the signer with role `client` |
| `{{Phone@client:phone}}` | role and type together (`{{Phone:phone@client}}` means the same) |
| `{{Signature@client:signature}}` | where `client` signs |
| `{{Project code@legal}}` | filled by the approver with role `legal` on their turn, before approving |
| `{{CRM number@none}}` | nobody fills it: the API or an agent sets it in `data`; nobody is asked and sending never waits for it |

The label becomes the field's **key**: lower case, words joined by underscores, Cyrillic transliterated (`Client name` → `client_name`, `ФИО клиента` → `fio_klienta`). Values are set by key in `data`.

## Types {#types}

| Type | Value |
| --- | --- |
| `text`, `long_text` | string |
| `email`, `phone` | string, checked |
| `date` | `YYYY-MM-DD` |
| `number` | number |
| `money` | `{ "amount": 320000, "currency": "EUR" }`, amount in minor units |
| `address` | string or `{ line1, line2, postal_code, city, country }` |
| `select` | one of `options` |
| `checkbox` | `true` / `false` |
| `signature`, `initials` | drawn or typed on the signing screen |
| `signed_date`, `signer_name` | written by Sendforsign at signing |

A label like "Signing date" typed `:date` becomes `signed_date` automatically.

## Who fills what {#who}

- A field **without a role** belongs to the sender. Fill it in `data` when creating, with `PATCH /v2/documents/{id}`, or in [SendFlow](@components#send-flow). Required sender fields must be filled before sending.
- A field **with a role** belongs to that signer. The signing screen asks them for it, checks the format, and shows it in place. Other signers do not see it until the document is complete.
- `signature`, `signed_date` and `signer_name` are filled at signing. A signature field without a role belongs to the only signer.

## Reading values {#values}

`GET /v2/documents/{id}` returns `fields` with typed values and who filled each one (`filled_by`). After completion, the values are final and match the signed PDF.
