> ## Documentation Index
> Fetch the complete documentation index at: https://formbricks.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Survey Display Logic

> How Formbricks decides whether to show an app survey to a user — from the simplest always-on setup to Recontact Options, the workspace Cooldown Period, segment targeting, and interaction-based segments.

Whether an app survey is shown to a given user comes down to a matching **trigger** plus a few independent **eligibility gates**. When a trigger fires, the survey appears only if it passes **all** of the gates. This page builds that model up one layer at a time, from the simplest case to the most advanced.

Formbricks decides a survey's eligibility from three gates, evaluated in this order:

1. **Recontact Options** — how often may *this* survey be shown to the same user?
2. **Cooldown Period** — has enough time passed since the user last saw *any* survey?
3. **Targeting** — is the user in the survey's audience?

A **Trigger** (a matching action) is the event that then shows an already-eligible survey — it is not a fourth gate, it is what starts a display attempt. The gates are computed up front (on load and whenever the user's data syncs); the trigger is checked against that result.

When the trigger fires, the survey's [show conditions](https://formbricks.com/docs/surveys/website-app-surveys/show-conditions.md) are checked: the page, the visit so far and the device. Only a survey that meets them goes on to the [display percentage](https://formbricks.com/docs/surveys/website-app-surveys/show-survey-to-percent-of-users.md), so the percentage samples visitors who qualify. They are covered in Level 5.

A click on a [creative](https://formbricks.com/docs/surveys/creatives/overview.md) that opens the survey skips all of this; see [Surveys opened by a creative](#surveys-opened-by-a-creative).

## Level 0 — Always show

Take a survey with **no targeting**, **no Cooldown Period**, and Recontact set to **"Keep showing while conditions match"**. Nothing gates it, so it shows **every time its trigger fires**. Simple, but usually too aggressive for anything but a persistent feedback button.

```mermaid theme={null}
flowchart LR
    T["Trigger fires"] --> S["Show survey"]
```

## Level 1 — Recontact Options (per survey)

Recontact Options control how often a single survey may reappear. They count *this* survey's own displays and responses, so they are genuinely **per survey**:

| Option | Shows the survey… |
| - | - |
| **Show only once** (default) | once, ever |
| **Show a limited number of times** | up to N displays, or until the user responds |
| **Ask until they submit a response** | on each trigger until the user responds |
| **Keep showing while conditions match** | on every trigger (Level 0) |

**Example:** an onboarding survey set to *Ask until they submit a response* keeps appearing on each trigger until the user answers, then stops.

```mermaid theme={null}
flowchart LR
    T["Trigger fires"] --> R{"Already shown<br/>enough times?"}
    R -->|"no"| S["Show survey"]
    R -->|"yes"| X["Skip"]
```

See [Recontact Options](https://formbricks.com/docs/surveys/website-app-surveys/recontact.md) for setup.

## Level 2 — Cooldown Period between surveys

On top of per-survey recontact, a **Cooldown Period** enforces a minimum gap between surveys. Two settings feed it, but they share **one clock**:

* **Workspace Cooldown Period** (default **7 days**): after a user sees *any* survey, no survey shows again for the Cooldown Period.
* **Per-survey override** (*Ignore Cooldown Period* / *Set custom Cooldown Period*): replaces the workspace number **for that survey only**.

> [!WARNING]
>
> The Cooldown Period is measured from the last time the user saw **any** survey — not from the last time they saw *this* one. So a per-survey "wait 90 days" really means "90 days since the user saw *any* survey," which frequently-shown surveys keep resetting. The per-survey number changes the *value*, not the *clock*. To gate one survey on its **own** schedule, use interaction-based segments (Level 4).

**Example:** with the default 7-day Cooldown Period, showing any short survey today blocks *every* survey — including a quarterly NPS — for the next 7 days.

```mermaid theme={null}
flowchart LR
    T["Trigger fires"] --> R{"Recontact:<br/>shown enough?"}
    R -->|"yes"| X["Skip"]
    R -->|"no"| W{"Enough days since<br/>ANY survey shown?"}
    W -->|"no"| X
    W -->|"yes"| S["Show survey"]
```

See [Cooldown Period](https://formbricks.com/docs/surveys/website-app-surveys/cooldown-period.md) for setup.

## Level 3 — Targeting with Segments

> [!NOTE]
>
> Targeting is part of [Attribute-based Targeting](https://formbricks.com/docs/surveys/website-app-surveys/attribute-based-targeting.md), included in the [Enterprise Edition](https://formbricks.com/docs/self-hosting/advanced/license.md).

Targeting restricts **who** is eligible. A survey can be assigned a Segment built from **Attributes**, other **Segments**, and **Devices**. Only users who match the Segment pass this layer; everyone else never sees the survey, regardless of triggers or the Cooldown Period.

**Example:** a Segment `plan = "pro"` means only Pro users are eligible for the survey.

```mermaid theme={null}
flowchart LR
    T["Trigger fires"] --> P{"Recontact &<br/>Cooldown Period OK?"}
    P -->|"no"| X["Skip"]
    P -->|"yes"| S{"User in the<br/>survey's Segment?"}
    S -->|"no"| X
    S -->|"yes"| Show["Show survey"]
```

See [Attribute-based Targeting](https://formbricks.com/docs/surveys/website-app-surveys/attribute-based-targeting.md) for setup.

## Level 4 — Interaction-based Segments

Interaction-based segments add a fourth Segment filter type: target users by **how they interacted with your surveys** — seen, started, or completed within a recent window. Because these look at a *specific* survey's own displays and responses, they do what the shared Cooldown Period clock cannot.

> [!NOTE]
>
> **Mobile apps need a recent Formbricks SDK** — `FormbricksSDK` 2.1.0 on iOS, `com.formbricks:android` 2.1.0, `@formbricks/react-native` 3.1.0, or `formbricks` 1.1.0 on Flutter. Older SDKs target the wrong people here, silently — see the warning at the end of this section. Web has no minimum.

A filter reads as one sentence:

> `<operator>` `<any survey | specific surveys>` **within** `<number>` `<days | weeks | months>`

### Interaction operators

| Operator | Matches users who… |
| - | - |
| **have seen** | were shown the survey within the window |
| **have not seen** | were **not** shown the survey within the window |
| **have started responding to** | opened and answered at least one question (finished or not) |
| **have completed** | submitted a completed response within the window |
| **have not completed** | have **no** completed response within the window |

> [!NOTE]
>
> **"have started responding to" vs "have not completed" are not opposites.** *Have started* requires the user to have engaged at least once. *Have not completed* is the negation of *have completed*, so it also matches everyone who never saw or started the survey — use it as an **exclusion**, not stand-alone targeting. To target **drop-offs**, combine both with `AND`: *have started responding to A* **AND** *have not completed A*.

### Primary use case: a true per-survey Cooldown Period

This is what interaction segments unlock over the built-in Cooldown Period. To show an **NPS survey on its own \~3-month cadence**, driven by that survey's own history rather than the shared cross-survey clock:

* **Recontact:** *Keep showing while conditions match*.
* **Cooldown Period:** set a **small** custom value (e.g. *1 day*) — a short guard so it can't repeat within a session (see the note below). Do **not** use *Ignore Cooldown Period*.
* **Targeting Segment:** `have not seen NPS within 3 months` (specific survey = NPS).

The Segment provides the real 3-month per-survey cadence; the small Cooldown Period is only a short-term guard.

```mermaid theme={null}
flowchart LR
    T["Trigger fires"] --> I{"Seen NPS in the<br/>last 3 months?"}
    I -->|"yes"| X["Skip"]
    I -->|"no"| S["Show NPS"]
```

### Other use cases

* **Follow-up funnel:** a detail survey targets `have completed NPS within 30 days`.
* **Re-engage drop-offs:** `have started responding to Onboarding AND have not completed Onboarding within 14 days`.

> [!NOTE]
>
> **Interaction membership refreshes on sync, not instantly.** Recontact and the Cooldown Period react the moment a survey is shown; interaction-segment membership is recalculated when the user's data syncs — on load, when you set a user ID or attributes, and after a survey is displayed, answered or completed. On a supported SDK version that lag is irrelevant for long windows like the 3-month cadence above, since the short Cooldown Period guard covers it — but don't rely on interaction filters for *instant* re-display suppression, and don't pair one with *Show only once*, which already blocks re-display permanently.

> [!WARNING]
>
> **On mobile, this needs a recent SDK.** The post-interaction refresh only exists from `FormbricksSDK` **2.1.0** (iOS), `com.formbricks:android` **2.1.0**, `@formbricks/react-native` **3.1.0** and `formbricks` **1.1.0** (Flutter). Older versions keep the segment list they received when the app started, so interaction filters go stale for the whole session: a survey can keep appearing after the user has already seen or completed it, and one that just became eligible won't appear until the app is relaunched. A short Cooldown Period does not compensate — it expires while the membership is still stale. Nothing errors, the targeting is simply wrong. See the [Framework Guides](https://formbricks.com/docs/surveys/website-app-surveys/framework-guides.md) for each SDK's install snippet.

## Level 5 — Show conditions (page, visit, device)

[Show conditions](https://formbricks.com/docs/surveys/website-app-surveys/show-conditions.md) are checked at the moment a trigger fires, on the visitor's own page: is this the right page, has the visit gone on long enough, is it the right device? Unlike segments they need no login, so they work for anonymous visitors, and they are available on every plan.

**Example:** an exit survey on the plan pages only, for visitors who have spent two minutes on the site or seen three pages. The trigger is exit intent; the conditions are *Current URL contains any of /plan-compare* and *Time on site is at least 120 seconds or Pages viewed is at least 3*.

They are checked again right before the survey appears, after its delay if it has one.

## Recontact Options or Interaction-based Segments?

Both control how often a user sees a survey, and both can look at the same survey's own history. They answer different questions, so pick by the question you are asking.

| | **Recontact Options** | **Interaction-based Segments** |
| - | - | - |
| **Question it answers** | "How many times may this survey be shown to the same user?" | "Did this user interact with a survey **within a time window**?" |
| **Looks at** | This survey's own displays and responses | Any survey you pick, including this one |
| **Time dimension** | None — it counts displays, not days | A window you set: days, weeks or months |
| **Reacts** | Instantly, the moment a survey is shown | On the next sync, not instantly |
| **Plan** | All plans | [Enterprise Edition](https://formbricks.com/docs/self-hosting/advanced/license.md) |

**Use Recontact Options when** the rule is about *how often*, with no calendar involved:

* show the survey **once**, or **until the user responds**;
* show it **a fixed number of times**;
* show it **every time** the trigger fires (continuous feedback).

**Use an interaction-based segment when** the rule involves *when* or *another survey*:

* repeat on a **cadence**, such as an NPS every 3 months (`have not seen NPS within 3 months`);
* send a **follow-up** to people who finished another survey (`have completed NPS within 30 days`);
* **re-engage drop-offs** (`have started responding to Onboarding AND have not completed Onboarding within 14 days`).

**Combine them for a cadence.** Recontact Options have no notion of "3 months", so a repeating survey sets Recontact to *Keep showing while conditions match* and lets the segment supply the time window. Recontact is checked first, so *Show only once* would block the survey permanently no matter what the segment says.

## Surveys opened by a creative

> [!NOTE]
>
> Creatives are part of the Formbricks [Enterprise Edition](https://formbricks.com/docs/self-hosting/advanced/license.md), on self-hosted
> instances whose license includes Creatives. They are not available on Formbricks Cloud.

A [creative](https://formbricks.com/docs/surveys/creatives/overview.md) that opens a survey, a feedback button or a banner with a button, opens it on every click, unless that survey is already on screen, without going through any of the levels on this page. The survey's triggers, Recontact Options, Cooldown Period, segment, show conditions, display percentage, delay and auto-close don't apply to the click: the visitor asked for the survey. If another survey is on screen, it closes first.

The display still counts for the survey's own rules, like any other display:

* It counts toward the survey's **Recontact Options**. After a click, a survey set to *Show only once* no longer pops up by itself for that visitor.
* It starts the **Cooldown Period** for every other survey that uses it.

An app survey that only creatives open needs no action of its own, and its **Display & Recontact** settings are disabled in the editor, because they only govern automatic popups.

## Putting it all together

```mermaid theme={null}
flowchart TD
    A["Visitor loads or identifies"] --> B["Formbricks syncs and calculates<br/>which Segments the visitor is in<br/>(including survey-interaction filters)"]
    B --> T{"Trigger:<br/>does a matching action fire?"}
    T -->|no| WAIT["Waits for a trigger"]
    T -->|yes| R{"Recontact Options:<br/>display count for THIS survey satisfied?"}
    R -->|no| X["Survey not shown"]
    R -->|yes| W{"Cooldown Period:<br/>enough days since the last survey shown?<br/>(per-survey value or workspace Cooldown Period)"}
    W -->|no| X
    W -->|yes| S{"Targeting:<br/>is the visitor in the survey's Segment?"}
    S -->|no| X
    S -->|yes| C{"Show conditions:<br/>do this page, visit and device match?<br/>(checked again after a delay)"}
    C -->|no| X
    C -->|yes| G["Survey shown, display recorded"]
    G -.->|"updates recontact & Cooldown Period state instantly"| R
    G -.->|"changes interaction-segment membership at next sync"| B
```

***

Still have questions or seeing unexpected behavior? [Join us in GitHub Discussions](https://github.com/formbricks/formbricks/discussions) and we'll be glad to help.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.