> ## 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.

# Condition groups

> Use condition groups to show, hide and validate fields based on multiple conditions at once. Use nested logic to encode any condition you need in your form.

## Show based on a condition group

Click the question or field's **settings icon**  to open the right-hand panel. Under **Logic**, click **Set conditional logic**, then **+ Add condition group**.

![Newsletter question settings with Hide conditionally and Set conditional logic highlighted](https://mintcdn.com/fillout-005a867b/YdO7a3YgO4F72m4-/images/condition-groups-set-logic.png?fit=max\&auto=format\&n=YdO7a3YgO4F72m4-\&q=85\&s=087a782e55d20f8e8614803119a6db7f)

You can also hide based on a condition group. Switch to **Hide when**.

### And function

If you choose **and**, all conditions set must be true to show (default) or hide a field.

![Condition group using and, where all conditions must be true](https://mintcdn.com/fillout-005a867b/YdO7a3YgO4F72m4-/images/condition-groups-and.png?fit=max\&auto=format\&n=YdO7a3YgO4F72m4-\&q=85\&s=b42491305a480ac5edad8503ab7a11e2)

For example, the "Would you like to join our newsletter?" question above will only **Show when** the respondent:

1. Answers "Yes, please" to "Do you like to get updates on our discounts and promotions?"
   AND
2. Is "18 years old and above"

You can calculate someone's age from a birthday field. See [Calculate the time between dates or times](https://fillout.com/help/calculations.md#calculate-the-time-between-dates-or-times).

### Or function

Now, let's use **or**. With this, as long as one condition is true, a question or field can be shown or hidden.

![Condition group using or, where any condition can be true](https://mintcdn.com/fillout-005a867b/YdO7a3YgO4F72m4-/images/condition-groups-or.png?fit=max\&auto=format\&n=YdO7a3YgO4F72m4-\&q=85\&s=f700ea46fd4fda6fc308b42dd7016d2c)

For example, the "How can we improve?" field will **Show when** a customer:

* Rates "less than 5 stars" on "How would you rate our service?"
  OR
* Rates "less than 5 stars" on "How was your shopping experience?"

### Nested conditions

You can also create a condition group using both **and** and **or** functions.

![Nested condition group combining an or group with an and condition](https://mintcdn.com/fillout-005a867b/YdO7a3YgO4F72m4-/images/condition-groups-nested.png?fit=max\&auto=format\&n=YdO7a3YgO4F72m4-\&q=85\&s=449580c4890a42b959e8abcf5fcc8882)

For example, we'll make the "Would you like to further discuss in a call?" **Show when** a customer:

1. Rates "less than 2 stars" on "How would you rate our service?"
   OR
   Rates "less than 2 stars" on "How was your shopping experience?"
   AND
2. Opted to "be contacted"

> [!TIP]
>
> You can copy and paste conditional logic across pages. If you copy a field with conditions set or duplicate it, its existing conditions get carried over.

## Related articles

> [card] [Hide fields](https://fillout.com/help/conditional-hiding.md)
>
> Hide or show fields based on answers, URL parameters or data.

> [card] [Calculations](https://fillout.com/help/calculations.md)
>
> Calculate prices for order forms, compute quiz scores, and more.

> [card] [Integration logic](https://fillout.com/help/conditional-integration.md)
>
> Perform an integration only when a certain condition is met.

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.