> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.formester.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to show a separate thank-you page when a quiz result is a tie

Use this guide when your quiz adds points to a variable for each outcome, and you want people whose top two outcomes score the same to see their own thank-you page that names both outcomes.

**Important:** Thank-you page rules are checked from top to bottom and the first match wins. Keep the tie rule above every outcome rule, or tied results will go to an outcome page instead.

## Before you begin

- Your quiz has one **Number** variable per outcome. This guide uses a travel quiz with the variables **Explorer**, **Foodie**, **Relaxer**, **Adventurer** and **Historian**.
- Name each variable the way you want it to read on the tie page. Variable names can contain only letters and numbers, so use `CityExplorer` rather than `City Explorer`.
- Each outcome has its own thank-you page.

## Score each answer

If your answers already add points to the outcome variables, skip to the next section.

1. Select the **Advanced** tab, then **Score Quiz**.
2. Turn on **Allow Multiple Variables**.
3. For each answer, choose the outcome it counts towards under **Variable**, and enter `1` under **Score**.

   ![Allow Multiple Variables turned on, and each answer of the first question mapped to a style variable with a score of 1](https://storage.crisp.chat/users/helpdesk/website/-/1/5/6/e/156e23ff3485c400/00-score-quiz_d16b4l.png)

4. Select **Save**.

## Rank the outcomes

You'll add three hidden calculations to the last question page. They find the top outcome, the runner-up, and the gap between them.

1. Open the last question page, select **Add Elements**, and add a **Calculation**.
2. Set **Field-Label** to `Top Style`.
3. In **Create Formula**, type `RANKLABEL(1, `, then type `@`, choose **Variables**, and pick your first outcome variable.

   ![The Variables list opens after typing @ in Create Formula](https://storage.crisp.chat/users/helpdesk/website/-/1/5/6/e/156e23ff3485c400/01-variable-menu_7v1k1d.png)

4. Type `, ` and add each remaining outcome variable the same way. The formula reads `RANKLABEL(1, Explorer, Foodie, Relaxer, Adventurer, Historian)`.
5. Add a second **Calculation** labelled `Runner-up Style` with the same formula, starting with `RANKLABEL(2, ` instead.
6. Add a third **Calculation** labelled `Lead`. Start it with `RANKVALUE(1, `, add the same variables, then type ` - RANKVALUE(2, ` and add the variables again.

   ![The three calculations, with the Lead formula in Create Formula](https://storage.crisp.chat/users/helpdesk/website/-/1/5/6/e/156e23ff3485c400/02-calculation-fields_fw9ry8.png)

   **Lead** is the top score minus the runner-up's score, so it is `0` exactly when the top two outcomes tie.

7. Select each of the three calculations and click **Hide**, so respondents don't see them.

   ![The Hide button next to the selected calculation](https://storage.crisp.chat/users/helpdesk/website/-/1/5/6/e/156e23ff3485c400/03-hide-field_1vahz5h.png)

## Create the tie page

1. Select **Add Page**, then **Thank You Page**.

   ![Thank You Page in the Add Page menu](https://storage.crisp.chat/users/helpdesk/website/-/1/5/6/e/156e23ff3485c400/04-add-thank-you-page_1bhnwm.png)

2. Open the new page's menu, choose **Rename**, and name it `Tie`.
3. Select the page's text. Change **Heading Text** to `It's a tie!`.
4. In **Description**, type `You're equal parts `, then type `@`, choose **Form Fields**, and pick **Top Style**.

   ![Top Style in the Form Fields list of the Description recall menu](https://storage.crisp.chat/users/helpdesk/website/-/1/5/6/e/156e23ff3485c400/05-recall-menu_ejn6a.png)

5. Type `and `, then recall **Runner-up Style** the same way. To end with a full stop, press Backspace once to remove the space added after the recalled field, then type `.`.

   ![The tie page with both recalled fields in the Description](https://storage.crisp.chat/users/helpdesk/website/-/1/5/6/e/156e23ff3485c400/06-tie-page-text_1r3dcnv.png)

## Send each result to the right page

1. Select the **Advanced** tab, then **Conditional logic and rules**.
2. Select **Add Rule**, then **Add Condition**. Set **Lead**, **Is Equal To**, `0`.
3. Under **Then**, choose **Show Different Thank You Page** and select **Tie**.

   ![A rule that shows the Tie page when Lead is equal to 0](https://storage.crisp.chat/users/helpdesk/website/-/1/5/6/e/156e23ff3485c400/07-tie-rule_6p8pxu.png)

4. Add one rule per outcome: **Top Style**, **Is Equal To**, the outcome's variable name, then **Show Different Thank You Page** and that outcome's page. For the travel quiz that's five rules, from `Explorer` to `Historian`.

   ![The Explorer rule: Top Style Is Equal To Explorer shows the Explorer page, below the collapsed tie rule](https://storage.crisp.chat/users/helpdesk/website/-/1/5/6/e/156e23ff3485c400/08-rule-order_1ykmwng.png)

5. Check that the **Lead** rule is first in the list, as above. If it isn't, drag it to the top.

6. Select **Save**, then **Publish**.

## Check it works

Open your published quiz and choose answers that give two outcomes the same top score. For example, in the travel quiz, two Explorer answers and two Foodie answers. You see the tie page with both outcomes:

![The tie page reads "You're equal parts Explorer and Foodie."](https://storage.crisp.chat/users/helpdesk/website/-/1/5/6/e/156e23ff3485c400/09-tie-result_b5w2x4.png)

Answer again so that one outcome clearly leads. You see that outcome's own page.

## Good to know

- If two outcomes tie, **Top Style** shows the one listed first in its formula. That only matters if you skip the tie page.
- A tie for second place doesn't count as a tie. The top outcome still gets its own page.
- If three or more outcomes tie for first, the tie page names the first two in the order your formula lists them.