# Showing questions based on answers

> Use display logic to show a questionnaire question only when an earlier answer calls for it, so every client gets a shorter form. Rules, examples and tips.

Source: https://help.corehue.co/docs/questionnaires/conditional-logic/

A question can stay hidden until an earlier answer makes it relevant. Ask "Is there a reception?" and only couples who say yes see the questions about the reception venue. Everyone gets a shorter form, and you still cover the cases that need more detail.

## Set up a conditional question

1. In the [questionnaire builder](/docs/questionnaires/building-a-questionnaire), open the question that should only show sometimes.
2. Under **Display logic**, pick the **Source question** it depends on.
3. Pick a **Rule**.
4. Pick or type the **Value** to compare against.

A line underneath reads back what you built, like: Shows when "Is there a reception?" is "yes". **Clear** removes the condition. Conditional questions carry a **Conditional** tag in the builder, so they're easy to spot.

The source has to be a question above this one. If the one you want isn't in the list, move it higher first. If you later move the source below it, delete the source or turn it into a section heading, the condition is removed and a note names the question that lost it.

## Rules for each type

| Source question | Rules |
| --- | --- |
| **Multiple choice** | **Includes** (they picked that option, alone or with others) |
| **Single choice**, **Yes / No**, **Date**, **Number** | **Is**, **Is not** |
| **Short text**, **Long text**, **Email**, **Phone**, **URL** | **Is exactly**, **Is not**, **Contains** |

Matching ignores capital letters, so "Yes" and "yes" behave the same.

## Examples you can copy

- **Only ask about the reception if there is one.** Show "Reception venue address" when "Is there a reception?" **Is** Yes.
- **Only ask about travel when it applies.** Show "Which airport are you flying into?" when "Are you traveling to the shoot?" **Is** Yes.
- **Follow up on one option in a list.** Show "How many pets, and what are their names?" when "Who's in the photos?" **Includes** Pets.
- **Catch a special case in free text.** Show "Tell me more about the surprise" when "Anything I should know?" **Contains** surprise.

## What your client sees

A hidden question isn't there for them, and it doesn't count towards their progress. If they change an earlier answer, questions appear or disappear to match. Fill it in yourself both ways before you send it to clients, so an important question doesn't quietly never show.

On your side, a completed questionnaire still lists hidden questions, grayed out with the reason they were hidden. See [Viewing questionnaire answers](/docs/questionnaires/viewing-responses).

## Using it well

- **Hide follow-ups, not basics.** If everyone needs to answer it, don't put it behind a condition.
- **Keep it to one level.** A question that depends on a question that depends on another is hard to follow and harder to fix.
- **Check after moving or deleting a question.** When a source question is deleted or no longer sits above a question that depends on it, that condition is cleared, so the question shows for everyone.

Conditions only show and hide questions. They don't calculate anything or change what happens on submit. For truly different sets of questions, two questionnaires are clearer than one form full of conditions.

## Frequently asked questions

### Can a question depend on two earlier answers?

No. Each question tests one earlier answer. Use a choice question that combines the cases, or split it into separate questions.

### Can I hide a whole section?

Not directly, since section headings can't be hidden. Put the same condition on every question under the heading, or make that section its own questionnaire.

### Do conditions work on questionnaires a booking sends?

Yes. Display logic works the same whether you send the questionnaire yourself, your client answers it during booking, or a booking service sends it on a schedule.
