# Custom fields

Add your own boxes to every lead: field types, who sees them, when they are required, formulas and how reps edit them.

Source: https://support.rework.com/article/lead-custom-fields

> **In plain words:** A **custom field** is an extra box on every lead that you define, such as "Budget", "Practice type" or "Number of chairs". Lead already has built-in fields (name, email, phone and more), which are called **system fields**. Use this page to add your own, decide who can see them, make them required at certain stages and calculate values with formulas. New to the words? See [Lead basics: words to know](https://support.rework.com/article/lead-basics).

**Where to find it:** Lead > open a service > the small arrow next to its name > **Service settings** > **Lead fields**. **Who can use it:** Service managers (service owners, the creator of the service and app admins). Reps fill in the fields on the lead itself.

## Before you start

- Design your fields before you connect sources. Field mapping points at fields that already exist, so adding them later means revisiting every source. See [Mapping a source's fields](https://support.rework.com/article/lead-mapping-source-fields), which also shows how to create a field while you map.
  
- Decide what really needs to be a field. A field nobody fills in only adds clutter.
  

## The Lead fields tab

The **Lead fields** tab **(1)** has two sub-tabs. **Custom fields** **(2)** holds the fields your team defines. It is the one you work in. **System fields** shows the built-in fields.

On **Custom fields**, the buttons at the top are:

- **New Field** **(3)**: a menu to create a new field.
  
- **Pick existing fields...** **(4)**: attach a field that already exists in the shared pool.
  
- **Export** and **Import**: move field definitions in or out as an Excel (.xlsx) or JSON file, for example to copy a setup to another system.
  

![Lead Fields tab](https://storage.googleapis.com/reworkv3-public/success/261015/XEW6hmX3Hm2AkTSDoKaEw7SaFEVEGC7Cjz4IXDg1oqjHtauHAT96RG3IHWB7kxT3/img.w5BmJs9RXX838uVfMEEt8JErHk7q5HOy4m3dZfC27IPVUrBWYFCdmB9lmugbftoB.png)

Each field is a row. Drag the handle to reorder fields, because the order here is the order on the lead. Small badges on the row show its settings, for example **Required**, **Important**, **On forms**, **In views**, **Hidden** and **Stage-bound**. The **...** button at the end of a row gives you **Edit field data**, **Edit field integration** and **Unlink field from service**.

### System fields

The built-in fields live on the **System fields** sub-tab **(1)**. The list **(2)** shows each field's code, name, type and flags such as **Read-only**, **Generated** or **Locked**. You cannot change these fields, but you can read their codes, because formulas and scoring rules use them. The fields are grouped (Lead Information, Analytics & Tracking, Enrichment, Sales Properties, Other), and each group has a search box.

![System fields tab](https://storage.googleapis.com/reworkv3-public/success/260928/x2k3GCzFJHN02g5YdJkSQe08HpRCUoekzG6WQbLi6zSlYQfQBYhTLdVcQlPRdNEp/img.SFKPGALp2zRP91saiNrU8sO9FmiAWaKeHa8ISpWnuL1zRczFrRCQCnM9bcwVGWVp.png)

## Create a field

1. Open **Lead fields** > **Custom fields**.
   
2. Click **New Field**. A menu opens with three kinds:
   
   - **Global Field:** available to every service in your workspace. Use it for things every team needs, such as Department.
     
   - **Service Field:** shared by the lead services of the same type. Another lead service can attach it later.
     
   - **Internal Field:** lives only on this service. Use it for one-off, service-specific data.
     
3. Pick one. A dialog opens.
   
4. Type a **Label**, the name people see, for example "Budget".
   
5. Check the **Code**. It fills in from the label if you leave it empty. Formulas and rules use the code, so keep it short.
   
6. Choose a **Type** (see the next section). For a Dropdown or Multi-Select, add the options people can choose from.
   
7. Optionally add a **Placeholder**, the grey hint text inside the empty box.
   
8. Save. The field appears in the list.
   

To use a field somebody already created, click **Pick existing fields...** instead. This avoids near-duplicates like "Industry" and "Industry type".

> **Note:** Unlinking a field takes it off this service. The values already saved on leads are not deleted. The field simply stops showing.

## Field types

| 
Type

 | 

What it holds

 |
| --- | --- |
| 

**Text**

 | 

One line of text, such as a nickname.

 |
| 

**Long Text**

 | 

Several lines of text, such as a description.

 |
| 

**Rich Text**

 | 

Longer formatted text.

 |
| 

**Lines**

 | 

A short list, one item per line.

 |
| 

**Integer**

 | 

A whole number, such as 12.

 |
| 

**Decimal**

 | 

A number with decimals, such as 4.5.

 |
| 

**Currency**

 | 

An amount of money.

 |
| 

**Rating**

 | 

A star rating.

 |
| 

**Progress**

 | 

A percentage shown as a bar.

 |
| 

**Date**

 | 

A calendar day.

 |
| 

**Date & Time**

 | 

A day and a time of day.

 |
| 

**Time**

 | 

A length of time in hours and minutes.

 |
| 

**Checkbox**

 | 

Yes or no.

 |
| 

**Dropdown**

 | 

One choice from a list you define.

 |
| 

**Multi-Select**

 | 

Several choices from a list you define.

 |
| 

**Email**

 | 

One email address.

 |
| 

**Phone**

 | 

An international phone number.

 |
| 

**URL**

 | 

A link to a web page.

 |
| 

**User**

 | 

One person from your workspace.

 |
| 

**Users**

 | 

Several people from your workspace.

 |
| 

**File**

 | 

One attachment.

 |
| 

**Files**

 | 

Several attachments.

 |
| 

**Table**

 | 

An editable grid of cells.

 |
| 

**Formula**

 | 

A value calculated from other fields.

 |
| 

**Conditional Formula**

 | 

A value from the first formula whose condition matches.

 |
| 

**Section heading**

 | 

A heading that splits a long form into parts. It holds no value.

 |
| 

**Message**

 | 

Read-only instruction text shown on the form.

 |

> **Tip:** Prefer a Dropdown over Text whenever the answers come from a short list. Dropdown values are easy to filter, and they give routing rules and scoring rules a clean list of values to pick from. Free text varies from lead to lead.

## The Integration dialog: where and how a field behaves

A field's definition says what it is. Its **integration** says how it behaves on this service. Click the **...** button on the field's row and choose **Edit field integration**. The dialog has four sections. Click **Save integration** when you finish.

### Visibility

| 
Option

 | 

What it does

 |
| --- | --- |
| 

**Required**

 | 

The lead cannot be saved while this field is empty. A red star marks it.

 |
| 

**Important**

 | 

A coloured star marks the field as worth filling in, but nothing blocks the save.

 |
| 

**Show on forms**

 | 

The field appears when people create or edit a lead.

 |
| 

**Show in views**

 | 

The field can appear as a column on the lead list.

 |

### Field-level security

Turn on **Enable FLS for this field** to restrict who can read and change the value. Then choose who can view it and who can edit it. The service owners always have access. Everyone else must be listed, so an empty list means only the owners.

Use this for sensitive data such as a discount limit or a personal ID number.

### Stage binding

Sometimes a field only matters from a certain step on. For example, a rep cannot know the budget before the first conversation. Turn on **Bind to specific stages**, pick the stages, and tick **Required in these stages** or **Important in these stages**.

When a field is stage-bound, the ordinary **Required** box no longer applies. The stage rules take over.

How the stages work together, using the stages of one group:

- The field is shown on the lead form from its stage onward, within the same stage group.
  
- It becomes required (or important) when the lead moves to a stage that comes after it, in the same group.
  
- Stages in other groups do not count. The four groups are Not started, In progress, Qualified and Disqualified. See [Lead services and stages](https://support.rework.com/article/lead-lead-services-and-stages).
  

**Example.** The In progress group has the stages Attempting, Connected and Demo booked, in that order. You bind the field "Budget" to Connected and tick **Required in these stages**.

1. A lead at Attempting does not show Budget.
   
2. When the rep moves it to Connected, Budget appears but is optional at this point.
   
3. When the rep moves the lead on to Demo booked, Budget is required. A dialog "Fill the fields this stage requires" opens, so the rep can fill it in before the move.
   

### Conditional display

Turn on **Enable conditional rules** to show the field only when other fields have certain values. For example, show "Competitor name" only when the Dropdown "Already using a tool?" is Yes. You build the condition with the same filter builder used on the lead list. A field hidden by a condition is never required, and any value already saved in it is kept.

## Formulas

A **Formula** field calculates its value for you. Write the formula in the **Formula** box when you create the field.

- Refer to another field by its code in curly braces, such as `{price}`.
  
- Refer to a built-in lead value the same way, such as `{score}`, `{created_at}` or `{stage}`. The **System fields** tab lists the codes.
  
- Use plain calculation, such as `{price} * {qty}`, or Excel-style functions such as SUM and IF. A picker beside the box lists the fields and functions.
  
- Tick **Treat empty variables as 0** if some of the fields you read may be blank.
  

**Example: how many days old is a lead?** Dates are stored as unix seconds, which means the number of seconds since 1 January 1970. A day has 86400 seconds. So this formula gives the age in days:

`({system_now_timestamp} - {created_at}) / 86400`

If the lead was created exactly 3 days ago, the difference is 259200 seconds, and 259200 divided by 86400 is 3.

Things to know:

- A formula is recalculated every time the lead is saved. It does not tick on its own overnight.
  
- Values starting with `system_`, such as `{system_now_timestamp}`, use UTC time.
  
- A formula field cannot be typed over. It is read only on the lead.
  

A **Conditional Formula** works like a list of "if this, then calculate that" lines. Lead uses the first line whose condition matches.

## What reps see on the lead

- **Lead Info panel.** Custom fields show in the **Lead Info** panel on the lead. A field the lead's stage demands, but that is still empty, shows a red **Missing value** pill.
  
- **Choose which fields the panel shows.** On the lead, managers click **Manage display fields** in the panel's header. A dialog lets you drag fields into order and switch each one on or off, for every lead in this service. You can show system fields here too.
  
- **Edit custom fields.** On a lead, open the **...** menu and click **Edit custom fields**. A dialog opens with every field expanded. Fill them in and click **Save changes**. The menu item appears only when the service has custom fields.
  
- **Moving stages.** When a field blocks a stage move, the move dialog lists what is missing. See [Moving a lead through stages](https://support.rework.com/article/lead-moving-stages).
  

## Troubleshooting

| 
Problem

 | 

Why it happens

 | 

What to do

 |
| --- | --- | --- |
| 

A field does not show on the lead form.

 | 

**Show on forms** is off, a stage binding starts later, or a condition hides it.

 | 

Open **Edit field integration** and check all three sections.

 |
| 

A rep cannot save a lead and sees "{field name} is required".

 | 

The field is **Required**, or a stage rule demands it.

 | 

Fill in the field, or relax the rule in the integration dialog.

 |
| 

A field is missing from the list of columns.

 | 

**Show in views** is off.

 | 

Turn it on in **Edit field integration**.

 |
| 

A formula shows the wrong number.

 | 

A field it reads is empty, or the formula has not been recalculated yet.

 | 

Tick **Treat empty variables as 0**, then save the lead again.

 |
| 

A source cannot fill your field.

 | 

The field was added after the source was mapped.

 | 

Open the source and map the field. See [Mapping a source's fields](https://support.rework.com/article/lead-mapping-source-fields).

 |
| 

You cannot find a field you want to attach.

 | 

It may already be attached, or it does not exist in the shared pool.

 | 

Check the list on the tab, then create it with **New Field**.

 |

More symptoms: [Fix it by symptom](https://support.rework.com/article/lead-fix-by-symptom).
