Skip to main content

Conditional Logic in Forms

Show or hide questions based on previous answers. Stakeholders only see the questions that apply to them, creating a more personalized and efficient experience.

Hubflo Team avatar
Written by Hubflo Team
Updated over a week ago

What is Conditional Logic?

Conditional logic lets you control when questions 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

Your trigger question, the one that controls whether other questions show, must be one of these types:

  • Dropdown (Single and Multi-select)

  • Single select radio button

  • Checkboxes (Single and Multi-select)

Note: Each question can have up to 3 conditions and can only check for one specific value.

How to Add Conditions

  1. Click +Add New to add the question that will control when other questions appear. It must be one of the four supported types listed above.

  2. Click +Add New to create the question you want to show or hide. This can be any question type.

  3. Click Add Condition+ on the conditional question

  4. Select an operator (how the condition checks the answer)

  5. Specify a value (the specific answer to check for)

Note: If Add Condition+ is greyed out, the previous question isn't one of the supported types.

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

Add more conditions (optional)

To show a question based on multiple answer choices, click Add Condition again and set up another condition. You can add up to 3 conditions per question.

Note: When you have multiple conditions, the question will appear if any of the conditions are met (they work as "OR" logic).

Understanding 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

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.

Did this answer your question?