Skip to main content

Piping

Create customized and dynamic studies

Written by Julie

What is piping?

Piping inserts a participant's earlier answer into a later question, so your study feels personal and stays relevant to each person.

For example, if a participant answers "Which tool do you use most?" with Figma, a later question can read: "What do you like most about Figma?"

Piping is available in:

  • Screener questions

  • Surveys (quantitative studies)

  • Unmoderated studies (qualitative studies), including the mobile app and browser recorder

Piping always stays within one part of your project. A screener answer can't be piped into the study, and a study answer can't be piped into the screener.

How to add a pipe

  1. Place your cursor where you want the answer to appear, in the question text or in an answer option.

  2. Click the Pipe button on the question. The Pipe side panel opens.

  3. Pick the earlier question you want to pipe from. Only questions that can be used at that spot are listed (see Which earlier questions you can pipe from, below).

  4. Choose what to pipe in, such as the participant's full response, their selected choices, or a count.

  5. Enter a fallback: the word or phrase to show if there's no answer to pipe. It's pre-filled with this.

  6. Insert. The pipe is added at your cursor as text, for example {{Q2 Choices|this}}.

Good to know:

  • The pipe picks up the formatting where you place it. If the surrounding text is bold, the piped answer will be bold too.

  • You can add more than one pipe to the same question or answer option.

  • If the Pipe panel is empty, there are no earlier questions that can be piped into this spot yet. This is expected for every question on page 1 of a survey.

In this example, Question 1 asks participants which project management tool they use most often at work.

Question 2 then pipes their answer into the rating question using {{Q1 Choices|your project management tool}}.

If a participant selects Trello in Question 1, they’ll see “How satisfied are you with Trello?” in Question 2. If they select Asana, they’ll see “How satisfied are you with Asana?”

Each participant rates the tool they actually use, and you only need one rating question for all of them.

The text after the | (“your project management tool”) is the fallback. If there’s no answer to pipe in, participants see “How satisfied are you with your project management tool?” so the question still makes sense.

What you can pipe from (sources)

Five question types can be piped from. What you can pipe in depends on the source question type.

Source question type

What you can pipe

What participants see

Written Response

Response

Their full written answer

Multiple Selection

Choices or Count

Choices: every option they selected, e.g. "Slack, Zoom, Figma". Count: how many they selected, e.g. "3"

Single Selection

Choices

The option they selected

Preference test

Choices

The image name of the option they picked

Rating scale

Score

The number they chose, e.g. "4"

  • Selected choices are listed in the order they appear in the question, separated by commas. No "and" is added before the last item, in any language.

  • Single Selection and Preference test only offer Choices, since the count would always be 1.

  • Image questions can't be used as a source.

  • In unmoderated studies, Preference test becomes available as a source with the new unmoderated question types release.

Where you can pipe to (destinations)

You can pipe into the question text of any question type, and into the answer options of Single and Multiple Selection questions.

A question's answer options can't pipe from that same question. For example, the options in Q4 can't show what the participant picked in Q4.

Destination

Piping availability

Single Selection (both question & answers)

Yes

Multiple Selection (both question & answers)

Yes

Written Response

Yes

Rating scale

Yes

Preference test

Yes

Matrix

Yes

Ranking

Yes

Task

Yes

Video

Yes

Instructions

Yes

First Click

Yes

Figma

Yes

Image

Yes (instructions field)

Which earlier questions you can pipe from

You can only pipe from a question the participant has already answered. What counts as "earlier" depends on the project type.

Project type

You can pipe from

Example

Survey

Questions on an earlier page only

A question on page 3 can pipe from pages 1 and 2, but not from other questions on page 3

Unmoderated study

Any question earlier in the study

Q6 can pipe from Q1 to Q5

Screener

Any earlier question in the same segment

A segment's Q3 can pipe from that segment's Q1 and Q2

Why the survey rule? A survey shows a whole page at once, so answers on the same page don't exist yet when the page loads. Questions on page 1 have nothing to pipe from.

Randomization in unmoderated studies

  • If Randomize questions within block is on, questions in that block don't show a Pipe button, and they can't pipe from each other. This applies to their answer options too.

  • If blocks are randomized against each other, piping is still allowed. If the source block happens to appear later for a participant, they see the fallback instead.

Fallbacks

Every pipe has a fallback, so a participant never sees a blank gap. Write the question so it still reads well with the fallback, e.g. "What do you like most about this tool?"

Fallback rules

  • Required, and pre-filled with this.

  • Up to 55 characters of plain text.

  • Can't contain another pipe.

  • The characters |, { and } can't be used. They're blocked as you type and removed if pasted.

When participants see the fallback

  • The source question was skipped because of display logic

  • The participant left the source question empty

  • The source question was deleted

  • The source question was moved after the question that uses it

  • The source question was randomized to appear later

  • The pipe points to a question that doesn't exist, or to a question type that doesn't support that pipe

Reading and typing pipes

A pipe looks like {{Q2 Choices|this}}: the source question number, what to pipe, then the fallback.

Part

Example

What it means

Question number

Q2

The source question

Type

Choices

What to pipe: Response, Choices, Count or Score

Fallback

this

What shows if there's no answer

Question numbers update automatically. If you reorder questions, the number in the pipe updates when you save so it still points to the same question. If the source question is deleted, the pipe changes to Q0 and shows the fallback.

Typing a pipe by hand. We recommend the Pipe button, but you can also type pipes yourself. Follow the format exactly:

  • Type is case-sensitive: Choices, not choices

  • No spaces inside the braces, except one space between the question number and type

  • No leading zeros: Q2, not Q02

  • If you leave out the fallback, this is used

Text that doesn't match the format, like {{ Q1 Response }}, shows to participants exactly as typed. Your project still saves, and you'll see a warning so you can fix it.

What participants see

Participants see their own answer in place of the pipe, as plain text. They never see the pipe itself.

Before you launch, preview your study. Piping works in preview exactly as it does in a live study, using the answers you give while previewing. This is the best way to check your pipes before launch.

Results, analytics and exports

Results, analytics and exports show the pipe (for example {{Q2 Choices|this}}), not each participant's filled-in version. Because of this, responses to a piped answer option are grouped together across all participants, even though each person saw different text.

Pipe warnings

If a pipe stops working, you'll see a warning while building your project. Warnings never block saving or launching, and pipes are never removed automatically. Until you fix it, a pipe with a broken source shows its fallback, and incorrectly formatted text shows exactly as typed.

Warning cause

How to fix it

The source question now comes after the question using it

Move the source question earlier, or re-pipe from a different question

(Surveys) The source question is no longer on an earlier page

Move the source to an earlier page, or move this question to a later page

(Screeners) The source question is no longer in the same segment

Re-pipe from a question in the same segment

(Unmoderated) Randomize questions within block was turned on after pipes were added

Turn off randomization for that block, or move the pipe outside it

The source question was deleted

Re-pipe from another question, or remove the pipe

The pipe type doesn't fit the source, e.g. Score from a Written Response

Re-insert the pipe with the Pipe button to pick a valid type

Text looks like a pipe but isn't formatted correctly

Fix the format, or re-insert it with the Pipe button

FAQ

Why is the Pipe panel empty? There are no valid earlier questions for this spot. In a survey, this happens on page 1 or when all earlier questions are on the same page. In an unmoderated study, check whether the question is in a block with Randomize questions within block turned on.

Why don't I see a Pipe button on a question? In unmoderated studies, questions in a block with Randomize questions within block turned on can't use piping.

Did this answer your question?