# Custom Fields

Add your own fields to every contact — membership tier, birthday, city — and use them in segments, imports and automations

import Shot from "../../../../components/shot.astro";

Custom fields let you keep details on a contact that Qwetty doesn't track out of the box: a membership tier, a customer number, a birthday, whether someone is a reseller. You define a field once for the whole organization, and every contact gets a place to fill it in.

<Shot name="custom-fields" alt="Contact fields of every type in Settings" />

You manage them in **Settings → Contact fields**. Defining, editing and deleting fields needs the **Settings → Edit** permission; filling in a value on a contact needs **Contacts → Edit**.

## Field types

| Type | What it holds | How it is entered |
|------|---------------|-------------------|
| **Text** | Any text, up to 1,000 characters | A text box |
| **Number** | A whole or decimal number, such as `12` or `4.5` | A number box |
| **Date** | A calendar date | A date picker |
| **Choice** | One value from a list of options you define | A dropdown of your options |
| **Yes / no** | Yes or no | A dropdown with **Yes**, **No** and **Not set** |

A **Yes / no** field has three states on purpose: **Not set** means nobody has answered, which is not the same as **No**.

## Creating a field

1. Go to **Settings → Contact fields** and click **Add field**
2. Enter a **Label** — the name your team sees, up to 60 characters
3. Check the **Key**. It is filled in from the label (`Membership tier` becomes `membership_tier`), and you can change it now: lowercase letters, digits and underscores, starting with a letter, up to 40 characters
4. Choose the **Type**
5. For a **Choice** field, type each option under **Options** and press Enter after each one. You need at least one option, and each must be different
6. Click **Save**

An organization can have up to 50 custom fields, and a **Choice** field up to 100 options.

:::caution
The **Key** and the **Type** can't be changed once the field exists. Stored values are filed under the key, and were checked against the type when they were saved. Automations refer to a field by its key, as `custom.<key>`. If you need a different key or type, create a new field.
:::

## Editing and ordering fields

Click the pencil icon next to a field to change its **Label**, or, for a **Choice** field, its **Options**.

Removing an option doesn't change contacts that already hold it — they keep the old value until someone edits that contact, at which point it must be one of the current options.

Use the up and down arrows to reorder the fields. The order here is the order the fields appear in on the contact form.

## Deleting a field

Click the trash icon next to a field and confirm. **Every contact's value for that field is deleted too**, and this can't be undone.

:::caution
Check where the field is used before you delete it. A segment condition on a deleted field doesn't fail — **is empty** then matches every contact and every other condition matches none, so a broadcast to that segment may reach far more or far fewer people than you expect. An automation condition on the field reads it as empty.
:::

## Filling in values

Custom fields appear in the **Custom fields** section of the contact form, both when you click **Add Contact** and when you choose **Edit Contact** from a contact's row menu. Leave a field empty, or choose **Not set**, to clear it. Changes are saved when you click **Create** or **Save Contact**.

Values can also come from a [CSV import](/en/contacts/importing), where any column can be mapped to a custom field, and from the [developer API](/en/developers/overview), which reads and writes them as `customFields`.

## Where custom fields are used

| Where | How |
|-------|-----|
| **Contact list** | Click **Columns** and tick the fields to show as columns. The choice is remembered in your browser only |
| **[Segments](/en/contacts/segments)** | A **Custom field** condition compares a field with a value |
| **[CSV import](/en/contacts/importing)** | Map a column to a field. A column whose header matches the field's key or label is mapped for you |
| **[CSV export](/en/contacts/search-and-export)** | Each field is a column, headed by its label |
| **[Automations](/en/automations/building-workflows)** | The **Contact Field Matches** condition lists your custom fields beside **Name**, **Email** and **Phone** |

:::note
Custom fields can't be inserted into message templates or broadcast variables. A template variable can be filled from the contact's name, phone or email, or with a fixed value.
:::

## Next steps

- [Segments](/en/contacts/segments) — Group contacts by their custom field values
- [Importing Contacts](/en/contacts/importing) — Fill custom fields in bulk from a CSV file
