---
title: "Conditional logic in forms"
description: "Show or hide questions and sections based on how a client answered a previous question."
url: https://support.hubflo.com/en/articles/13106006-conditional-logic-in-forms
collection: "Forms"
updated: 2026-08-31
language: en
alternates: [fr]
---

# Conditional logic in forms

Show or hide questions and sections based on how a client answered a previous question.

# What is conditional logic?

Conditional logic lets you control when questions or form sections appear based on how someone answered earlier in the form. This keeps your forms shorter and more relevant.

For example, if someone selects "Business" as their account type, you can show additional questions about their company. If they select "Personal", those business questions stay hidden.

## Before you start

Each question can have **up to 3 conditions.** The question that _triggers_ a condition must be one of these types:

-   Dropdown
    
-   Single Choice (Radio Buttons)
    
-   Multiple Choice (Checkboxes)
    
-   Number
    
-   Scale / Rating
    

The question being shown or hidden can be any type.

[Multiple entries questions](https://support.hubflo.com/en/articles/15452899-multiple-entries-questions-in-forms.md) cannot be used as condition triggers and don't support conditional logic.

# How to add conditions

1.  Add your trigger question (must be one of the supported types above)
    
2.  Add the question you want to show or hide
    
3.  Click **Manage Condition** on that second question and set up your condition
    

**Note:** If **Manage Condition** is greyed out, the previous question isn't a supported trigger type.

**Important:** Values need to match the answer choice exactly as it appears in your trigger question. You can only enter **one value per condition.**

## Adding multiple conditions

To show a question based on more than one answer, click **Manage Condition** again and add another condition. You can add up to 3 per question.

When multiple conditions are set, they work as OR logic, not AND, so the question appears if **any one of them** is met.

## Add conditions to sections

To show or hide an entire section based on an answer, click **Manage Condition** on the section itself and set up your condition.

![](https://staticfiles.gleap.io/helpcenter/6a4bcc4e8b024171cc9027af/20260709133142_7351.gif)

# Operators

Operators control how the condition checks the answer.

## For dropdown and radio questions:

-   **equal**: shows the question when the answer matches exactly
    
-   **different**: shows the question when the answer doesn't match
    

## For select multiple and checkbox questions:

-   **includes**: shows the question when the answer contains this value
    
-   **excludes**: shows the question when the answer doesn't contain this value
    

## For Number and Scale / Rating questions:

-   Is less than
    
-   Is greater than
    
-   Is less than or equal to
    
-   Is greater than or equal to
    

# Example walkthrough

Let's say you want to ask follow-up questions only when someone is interested in Communication or Marketing services.

**Question 1:** What services are you interested in? (Select Multiple)  
Options: Marketing, Communication, Support

**Question 2:** Please describe your needs or goals (Text field)

**Conditions on Question 2:**

-   Condition 1: Show when "What services are you interested in?" includes "Communication"
    
-   Condition 2: Show when "What services are you interested in?" includes "Marketing"
    

**Result:** Question 2 appears whenever someone selects Communication, Marketing, or both. If they only select Support, Question 2 stays hidden.

![](https://staticfiles.gleap.io/helpcenter/6a4bcc4e8b024171cc9027af/20260709133142_6781.gif)
