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

# Conditional form integration logic

> Perform an integration only when a certain condition is met. Use conditional logic to create dynamic Fillout forms based on respondents' input.

## What is conditional logic?

**Conditional logic** allows you to make forms that adapt to a respondent's answers. Fillout lets you **Set conditional logic** based on:

* &#x20;\- [previous form inputs](https://fillout.com/help/answer-piping.md)
* &#x20;\- [URL parameters](https://fillout.com/help/url-parameters.md)
* &#x20;\- [calculations](https://www.fillout.com/help/calculations#pre-fill-fields-with-a-calculation)
* &#x20;\- [custom dates](https://fillout.com/help/pre-fill-dates.md)
* &#x20;\- [enriched emails](https://www.fillout.com/help/lead-enrichment#how-to-enrich-emails) with company information
* &#x20;\- [quiz scores](https://www.fillout.com/help/make-a-free-quiz#advanced-quiz-features)

## How to specify a condition

**1. Open the integration**

Head to **Integrate** and click your existing connection or connect to a new tool.

![Integrate page with a HubSpot connection under Your connections](https://mintcdn.com/fillout-005a867b/3JloukOIm5_WGKyq/images/integrate-your-connections.png?fit=max\&auto=format\&n=3JloukOIm5_WGKyq\&q=85\&s=a0fd545d241736cf17b567b4a0f876fb)

**2. Set a condition**

At the bottom, click the **branch icon** .

![Integration settings with the run condition icon highlighted](https://mintcdn.com/fillout-005a867b/d172tq29HsJzsfP3/images/integration-run-condition-icon.png?fit=max\&auto=format\&n=d172tq29HsJzsfP3\&q=85\&s=8924086711a857a7796d291226d1a16c)

In this example, we'll only add contacts to our [Klaviyo](https://fillout.com/help/klaviyo.md) newsletter if they will attend the movie screening. Click **+ Add condition**. Choose the field or question on the left followed by the relevant option on the right.

![Run condition that runs the integration only when Will you be attending equals Yes](https://mintcdn.com/fillout-005a867b/d172tq29HsJzsfP3/images/integration-run-condition.png?fit=max\&auto=format\&n=d172tq29HsJzsfP3\&q=85\&s=88df54e68c2064a749ffb8b240240ec6)

Now, newsletters will only be sent to those who will attend the screening. Note that you can do this for any integration type, like [Airtable](https://fillout.com/help/airtable.md), [HubSpot](https://fillout.com/help/hubspot.md) and [many more](https://fillout.com/help/integrations.md).

**3. Publish and share**

Remember to **Publish** your form to make the latest changes reflect.

## Pause an integration

A condition with no rules is ignored, so the integration still runs. To stop an integration for a while without removing it, add a condition that can never be true, for example a name that equals **???1!** or an email that equals **123**. Publish your form so the change applies.

To turn the integration back on, remove the condition and publish your form again.

## 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] [Condition groups](https://fillout.com/help/condition-logic-groups.md)
>
> Show or hide fields based on multiple conditions at once.

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.