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

# Form page logic

> Build forms with multiple pages and branching logic. Conditionally show certain pages or custom endings with Fillout.

## Overview

**Conditional** [**logic**](https://fillout.com/help/conditional-hiding.md) lets your forms adapt to respondents' answers. By default, forms follow a linear path with a next-page button. With page logic and conditional steps, you can control how pages connect (e.g., skipping a page for respondents who choose a certain option), creating a more interactive and personalized experience.

## Video tutorial

[iframe video](https://www.loom.com/embed/221e4df32658448caa83f0a2b5e73efb)

## Edit page branching

**1. Open Logic**

After adding the necessary pages to your form, click **Logic** at the bottom right of the editor.

![Page bar at the bottom of the form editor with Add page, the form's pages and their icons, and the Logic button on the right](https://mintcdn.com/fillout-005a867b/YKPHy1tOSiw5kHC7/images/editor-page-bar-logic.png?fit=max\&auto=format\&n=YKPHy1tOSiw5kHC7\&q=85\&s=c2c1c7d4ddb415e71b3e97289e208a1d)

Each page shows up on the logic map with an icon for its type: an amber document for form pages, a blue book for cover pages, a red check mark for ending pages, a green lock for login pages, a pink credit card for payment pages, a purple eye for review pages and a dark gray calendar for scheduling pages. The page bar at the bottom of the editor shows the same icons in gray, with **Logic** on the right.

![Logic map with one page of each type in a row: Login, Cover, Review, Payment, a scheduling page called Intro call, Page and Ending, each with its icon](https://mintcdn.com/fillout-005a867b/YKPHy1tOSiw5kHC7/images/logic-map-page-types.png?fit=max\&auto=format\&n=YKPHy1tOSiw5kHC7\&q=85\&s=f98fe4d66cc1b7629a774de9c2b4f4eb)

Let's say you want respondents to go to different pages depending on their answers. For example, we'll ask respondents what kind of company they work at.

In this example, we want respondents to see different pages based on discount eligibility. With this, we’ll create two different **ending** pages (accepted and rejected). If they work at a non-profit, they'll also have to describe the organization.

What we want to do is:

* If they qualify for a discount right away (e.g., student), show them the accepted ending page
* If they work at a non-profit, show them the non-profit page
* If they don’t qualify (e.g., private company), show them the rejected ending page

![Page logic map with Info, Non-profit, Accepted and Rejected pages](https://mintcdn.com/fillout-005a867b/YdO7a3YgO4F72m4-/images/page-logic-map.png?fit=max\&auto=format\&n=YdO7a3YgO4F72m4-\&q=85\&s=719823e631a185095ac11620e6db234d)

**2. Connect pages**

First, click and drag from the  connector of the page you want to connect, then drop it onto the target page. For example, we'll click connector "Info" and route it to "Rejected".

Click **Set condition** to define when it will redirect to "Rejected". In this case, if it’s a "Private company".

![Page logic map with a branch from Info to Rejected and its condition being set](https://mintcdn.com/fillout-005a867b/YdO7a3YgO4F72m4-/images/page-logic-connect-pages.png?fit=max\&auto=format\&n=YdO7a3YgO4F72m4-\&q=85\&s=43abe431e362844f4f27ff9b5cf49fdc)

**Repeat step 2 for other scenarios**

Finally, we also want to route respondents to the success page right away if they’re a student. Click **+ Add branch**, then **Set condition**.

![Page logic map with a second branch from Info to Accepted for students](https://mintcdn.com/fillout-005a867b/YdO7a3YgO4F72m4-/images/page-logic-add-branch.png?fit=max\&auto=format\&n=YdO7a3YgO4F72m4-\&q=85\&s=d32cb3b0bb34d2b5af2cae8e20b442ec)

Now, respondents will get redirected to different pages depending on their answer.

**3. Publish and share**

**Publish** your form to make the changes reflect and share or embed this.

**Set up page logic with AI**

You can also ask **Form Agent** to assist you with branching pages. Learn more [here](https://www.fillout.com/help/form-agent).

## Related articles

> [card] [Page logic](https://fillout.com/help/page-logic.md)
>
> Hide or show pages or custom endings based on respondent input.

> [card] [Ending page](https://fillout.com/help/ending-page.md)
>
> Show a thank you page, redirect, or allow re-submission.

> [card] [Condition groups](https://fillout.com/help/condition-logic-groups.md)
>
> Show or hide fields based on multiple conditions at once.

Still have questions?

Our team is happy to help. Start a live chat using the

chat bubble  in the bottom right, or email us at

[support@fillout.com](mailto:support@fillout.com)

[Contact us](mailto:support@fillout.com)


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