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

# Calculated Fields

> Set quote values automatically from your lead's answers, without asking extra questions

## Overview

Some quote details shouldn't be up to your customer. If your service runs 2 hours for most events but 3 hours once you pass 100 guests, you don't need to ask how long they want. You already know.

A calculated field sets a quote value for you, based on another answer in your lead intake form. Customers never see it. They answer the questions that matter to them, and Flashquotes fills in the rest.

Use calculated fields to:

* **Set service duration** from guest count
* **Set the number of days** from guest count or event type
* **Add special notes** to the quote based on a choice the customer made
* **Save your own value**, like a package tier, alongside the lead's answers

> [!NOTE]
>
> Calculated fields are available on lead intake forms only.

## Add a calculated field

**1. Open the question picker**

In your lead intake form editor, click **Add question** below any page.

**2. Choose Calculated field**

Under **Advanced**, click **Calculated field**.

![The Add question modal with Calculated field under Advanced](https://mintcdn.com/flashquotes/85Ze9gJq24aF6jBw/images/forms/question-picker-calculated-field.webp?fit=max\&auto=format\&n=85Ze9gJq24aF6jBw\&q=85\&s=9a099017c486fcc06b9b58b9269e394c)

**3. Pick the field to set**

Open the field menu at the top of the settings panel and choose what this field fills in:

* **Service duration**, in half-hour steps from 0.5 to 24 hours
* **Number of days**, as a whole number from 1 to 366
* **Special notes**, as text
* **Custom number** or **Custom text**, with a field name you choose

**4. Choose the answer it's based on**

Under **When**, pick the question to check. You can use guest count from the staffing calculator, or any number, text, multiple choice, or dropdown question on the form.

**5. Add your conditions**

For each condition, choose a comparison, the answer to compare against, and the value to **Set to** when it matches. Click **Add condition** for more.

**6. Set the fallback**

Enter a value in **Otherwise, set to**. It's used when no condition matches, or the customer leaves the question blank.

**7. Test it and save**

Open **Test it**, enter a sample answer, and check the result. Then click **Save calculated field**.

## Example: more days for bigger events

Say your events run one day, but anything over 80 guests needs two.

![A calculated field that sets Number of days to 2 when guest count is greater than 80, otherwise 1](https://mintcdn.com/flashquotes/85Ze9gJq24aF6jBw/images/forms/calculated-field-example.webp?fit=max\&auto=format\&n=85Ze9gJq24aF6jBw\&q=85\&s=80183c55f130ae55d8cad4a7bbd14a76)

1. Choose **Number of days** as the field
2. Under **When**, pick **Guest count**
3. Add a condition: **is greater than** 80, **Set to** 2 days
4. In **Otherwise, set to**, enter 1 day

A customer who enters 120 guests gets a two-day quote. A customer who enters 50 gets one day. Neither of them had to answer a question about it.

> [!TIP]
>
> The same setup works for service duration. Pick **Service duration**, add **is greater than** 100 guests, **Set to** 3 hours, and set **Otherwise** to 2 hours. Now you can drop the service length question from your form.

## How conditions work

**Number answers** (like guest count) can be compared with **is equal to**, **is not equal to**, **is greater than**, **is at least**, **is less than**, or **is at most**.

**Text and choice answers** can be compared with **is** or **is not**. For multiple choice and dropdown questions, you pick from that question's options.

When more than one condition matches, the most specific one wins. For example, with **is greater than 80** and **is greater than 150**, an answer of 200 uses the **greater than 150** value. If two conditions overlap and neither is more specific, Flashquotes asks you to fix them before saving.

> [!NOTE]
>
> If the source question is on a page the customer never sees, or they leave it blank, the field uses your **Otherwise** value.

## Things to know

* **Customers never see calculated fields.** They show as "Hidden from customers" in the editor and are skipped on the live form.
* **One source per field.** If another question already sets the field you picked, the editor tells you which one. Delete that question first, or pick a different field.
* **Service duration and the staffing calculator.** To set service duration with a calculated field, turn off **Ask for service duration** in your staffing calculator settings.
* **Custom fields** are saved with the lead's other form answers.

## Next Steps

* [Set up your lead intake form](https://docs.flashquotes.com/forms/lead-intake.md)
* [Set up Instant Pricing](https://docs.flashquotes.com/contacts/instant-pricing.md)


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