# 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 you want to show only sometimes.
2. Find **Display logic**.
3. Under **Source question**, pick the earlier question it depends on. It reads "Always visible" until you choose one.
4. Pick a **Rule**, then the **Value** to compare against.

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

**The source question has to sit above it.** Only earlier questions are offered. If the one you want isn't in the list, move it higher first. Section headings and instruction text can't be a source and can't be hidden.

## The rules for each type

The rules you can pick depend on the source question's type. See [Question types](/docs/questionnaires/question-types) for what each type collects.

| 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 hidden means for your client

A hidden question isn't there for that client at all. It doesn't count towards their progress, and it comes back with no answer. If they change an earlier answer, questions appear or disappear to match.

On your side, a completed questionnaire still lists hidden questions, grayed out and marked **Hidden** with the reason. Questions that appeared because of a condition carry a note saying what made them show. See [Viewing questionnaire answers](/docs/questionnaires/viewing-responses).

## Using it well

- **One condition per question.** A question depends on one earlier answer. If you need two separate cases, make two questions.
- **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.
- **Test both paths.** Before sending to clients, run through the form answering each way, so an important question doesn't quietly never appear.
- **Check after deleting a question.** Deleting a source question clears the conditions pointing at it, and those questions become always visible.

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

## Frequently asked questions

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

No. In CoreHue display logic, 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. Section headings can't be hidden with display logic, but you can put a condition on every question under the heading. If a section is only for some clients, a separate questionnaire is often simpler.

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

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