# Fields

> Place variable data in a template, create your own fields, handle an empty field.

A field is a piece of data that changes from one document to the next: the customer's name, the invoice number, the total. The template holds the field, the PDF holds the value.

## Where fields come from

The **Data** tab lists them by group (Customer, Order, Vehicle…), each with its sample value.

- **Document created in Mizanpage**: you create your fields yourself.
- **Document described by your software**: your software sends the list of fields. They cannot be changed from the editor.

## Place a field

- Drag it from the **Data** tab onto the page. It becomes a block showing that single piece of information.
- Or insert it in a text with **Insert a field…** in the inspector.

## Create a field

For a document created in Mizanpage:

1. In the editor, open the **Data** tab of the left rail.

   ![The Data tab of the left rail](https://mizanpage.com/docs/medias/tutos/champs-1.en.webp)

2. Click **New field**.

   ![The New field button](https://mizanpage.com/docs/medias/tutos/champs-2.en.webp)

3. Type a name, for example “Mileage”, choose a type (Text, Long text, Amount or Date), then click **Add**.

   ![The field name and the Add button](https://mizanpage.com/docs/medias/tutos/champs-3.en.webp)

The field is placed on the page. For administrators and designers only.

## Rename or delete a field

A field's **⋯** menu offers **Rename** and **Delete**.

- Renaming changes the displayed name. Templates that print it do not change.
- Deleting asks for confirmation. If templates print the field, a second confirmation names them. The field then also disappears from those templates. None is left broken.

Documents already generated do not change.

## A field's settings

In the inspector, a field can have:

- a **label** in front of it or above it ("Customer:");
- a **fallback text** if the value is empty;
- a **prefix** and a **suffix** ("€", "km");
- a behaviour when the data is too long: see [Data that is too long](https://mizanpage.com/en/docs/editeur/donnees-longues.md).

## An empty field

In the PDF, a field with no value disappears. Its label disappears too. In the editor it shows in grey so that you can see it.

## Lists

A list is a field holding several rows: the lines of an invoice, the accessories of a vehicle. It does not print like a single field. It feeds a [table](https://mizanpage.com/en/docs/editeur/tableaux.md) or a [chart](https://mizanpage.com/en/docs/editeur/graphiques.md).

## Fill in with your software's data

If your software is connected to the editor, buttons such as **Pick a customer** or **Pick from the stock** fill in the fields of a group with a real record. Otherwise, fictitious demo data is offered.

---

Documentation Mizanpage · Guide › The editor
https://mizanpage.com/en/docs/editeur/champs/
