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

# Send people somewhere different with rules

> Use answers to decide where each person goes after submitting, and set their status, label them, flag them or email yourself.

Rules let one form treat people differently based on what they answered. Someone with the right budget can go straight to your booking page. Someone who isn't a fit can see the thank-you page and be marked **Not a fit**, so you don't chase them.

> [!NOTE]
>
> Available on Plus, Pro and Business.

## How rules work

* Rules are checked **top to bottom** when someone submits. The **first rule that matches wins**, and the rest are skipped.
* If no rule matches, people get the **Default outcome** you set on the Default view: the [thank-you page](https://crestform.io/docs/after-submit/thank-you-page.md), a [redirect](https://crestform.io/docs/after-submit/redirect.md) or a [booking page](https://crestform.io/docs/after-submit/booking-page.md).
* A rule can use any question on the form, wherever it sits.
* You can have up to 20 rules on a form, and up to 10 conditions in each rule.

## Open the Rules view

Open the form in the builder, click **After submit**, then pick **Rules** at the top. A form with no rules shows "Everyone sees the same thank-you page" and two buttons:

* **Add booking rule** sends matching people to a booking page and adds **Email me**. If you set a Booking URL on the Default view, it is filled in for you. You only pick the question and answer that mean "qualified". The preset leaves their status unchanged: seeing a calendar is not a confirmed appointment.
* **Add a blank rule** adds an empty rule for you to build.

Once you have a rule, add more with **Add rule** under the last one.

## Build a rule

**1. Set the condition**

Next to **If**, pick a question, a comparison and an answer. For a question with set answers, such as a dropdown or multiple choice, pick the answer from the list. For a text or number question, type it.

**2. Add more conditions (optional)**

Click **Add condition**. Each new line starts with **And**: every condition must be true for the rule to match. To match on one thing *or* another, make two rules.

**3. Choose where they go**

Under **Then send them to**, pick **The thank-you page**, **Another page** or **A booking page**. For the last two, paste a full address starting with `https://`.

**4. Add actions (optional)**

Under **And also**, click **Add action** and pick one. Each action can be used once per rule.

Rules save as you go. A rule still missing a link or a fit label shows "Not saved yet" until you fill it in. If the form is live, click **Publish changes** for your rules to take effect. See [publishing](https://crestform.io/docs/forms/publish.md).

### Comparisons

| Comparison | Matches when the answer… |
| - | - |
| **equals** | is exactly this. For tick boxes, this answer is one of those ticked. |
| **does not equal** | is anything but this |
| **contains** | includes this text |
| **does not contain** | doesn't include this text |
| **is empty** | was left blank |
| **is not empty** | was given |

Matching ignores capital letters and spaces at either end. A question left blank only ever matches **is empty**: every other comparison is false for it.

### Actions

| Action | What it does |
| - | - |
| **Set person status** | Sets the person to **New**, **Booked**, **Client**, **Paused**, **Churned** or **Not a fit**. See [statuses](https://crestform.io/docs/people/statuses-and-filters.md). |
| **Set fit label** | Writes a short note on the person, such as "High budget · ready to start". It shows as their Fit in People. |
| **Flag for review** | Marks the response and the person so you notice them. In People, filter by **Flagged by a rule** to find them. |
| **Email me** | Sends the new-response email for this submission to your notification recipients, even if [notifications](https://crestform.io/docs/notifications/new-responses.md) are off for the form. |

> [!NOTE]
>
> **Set person status** and **Set fit label** need the form to ask for an email address. That is how Crestform knows which person to update. See [how People works](https://crestform.io/docs/people/how-people-works.md).

> [!WARNING]
>
> A status action runs when the response matches, not when a calendar appointment is confirmed. Older booking rules may still set **Booked** immediately; remove that action if you want Booked to mean a confirmed call. Mark them Booked in People once the appointment appears in your calendar.

## Change the order

Order matters because the first match wins. Use the up and down arrows at the top right of a rule card to move it. Click the cross to delete it.

Put your most specific rules at the top and catch-all rules at the bottom.

## Example: a consultancy qualifying leads

A consultancy's enquiry form asks for an email and has a multiple-choice question, "What's your budget?", with the answers "Under £5,000", "£5,000 to £20,000" and "Over £20,000". They only take on projects over £5,000.

**Rule 1**

* **If** "What's your budget?" **does not equal** "Under £5,000"
* **Then send them to** A booking page: their Calendly link
* **And also:** Set fit label "Qualified", Email me

**Rule 2**

* **If** "What's your budget?" **is not empty**
* **Then send them to** The thank-you page
* **And also:** Set person status **Not a fit**, Set fit label "Budget under £5k"

Anyone with a big enough budget matches Rule 1, sees the booking page and gets the fit label **Qualified**. Their status stays unchanged until you confirm a booking. Everyone else who answered falls through to Rule 2, sees a polite thank-you page and is marked **Not a fit**. If the two rules swapped places, Rule 2 would catch everyone first.

## Related

> [card] [Show a booking page](https://crestform.io/docs/after-submit/booking-page.md)
>
> Set up the calendar a rule can send people to.

> [card] [Statuses and filters](https://crestform.io/docs/people/statuses-and-filters.md)
>
> See what each status means and filter by it.


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