Display logic and routing
Display logic controls who sees a page, section, or question based on a condition — not a random pick from a pool.
Use Path Logic → Display Logic on the target (page, section, or block).
For random exposure (shuffle or subset), use the Randomiser instead.
When to use display logic
Section titled “When to use display logic”| Situation | Example |
|---|---|
| Assignment from a URL parameter | ?cohort=beta from Prolific or custom email links |
| Participant sample field | Pre-imported segment or plan type |
| Earlier answer | Show follow-up only if NPS ≤ 6 |
| System / session | Mobile vs desktop |
| Cookie or data layer | In-product surveys via SDK |
| Manual group wiring | Show Page 2 only when study_group = B |
Use display logic when:
- Assignment is deterministic from context (URL, device, sample)
- Rules depend on answers during the study
- You need show/hide without picking K of N from a pool
Use the Randomiser when:
- You want random shuffle or random subset sampling
- You want Randomisation groups with automatic setup
Common drivers
Section titled “Common drivers”| Driver | Example |
|---|---|
| URL parameter | ?condition=B → show Section B only |
| Participant sample | segment = enterprise → show enterprise flow |
| Question response | Prior answer equals “Yes” → show follow-up page |
| Randomisation variable | task_variant = C → show Page C |
| System variable | Device type is mobile → show mobile-optimised page |
Display logic vs randomisation groups
Section titled “Display logic vs randomisation groups”| Feature | Randomisation groups | Manual display logic |
|---|---|---|
| Setup | Randomiser → subset → enable groups | Display Logic tab per target |
| Assignment | Random, balanced, stored on response | Any condition you define |
| Rules | Auto-compiled (read-only on targets) | Fully editable |
| Best for | A/B/C experiments | URL routing, answer-based paths, custom logic |
The Randomiser tab includes a callout pointing to Display Logic when subset mode is active — especially for URL- or device-based routing.
Prolific and custom links
Section titled “Prolific and custom links”For panel links that encode the condition in the URL:
- Create a URL parameter variable (e.g.
conditionfrom?condition=B) - Add Display logic on each page or section: show when variable equals the right value
- Do not use section subset mode — assignment comes from the link, not a random pick
See Experiment recipes — Prolific routing.
Branching
Section titled “Branching”Branching (Path Logic → Branching) jumps participants to another page or section after they answer questions on the current page. Use it for path changes mid-study; use display logic for show/hide before the page is reached.
For variables, formulas, and piping, see Conditional logic and variables.