Logic & Flow

Inserting a Prior Answer into Question Text Using Piping Tokens

Updated

Pipe a respondent's earlier answer into later question text with tokens like ${Q1}, so questions read like a conversation.

All Logic & Flow articles

Overview

Pipe a respondent's earlier answer into later question text with tokens like ${Q1}, so questions read like a conversation instead of a form.

Step-by-step

  1. Edit the later question's text — click into the text editor. The formatting toolbar has a { } Pipe button.

  2. Insert a token — click { } Pipe, choose the source question, and a token like ${Q1} is dropped at your cursor. At runtime it's replaced with that respondent's answer. The Answer Piping section in the Logic tab

  3. Review tokens in the Logic tab — the Answer Piping section under Settings → Logic manages the tokens in use, so you can audit them without scanning the text.

  4. Guarantee the source has an answer — pipe only from Required questions, or gate the piped question with display logic so it never renders an empty token.

Tips

Tip: Piping works in end screens too — a thank-you can say "Thanks for rating ${Q1.selectedOption}" or greet by embedded data with ${ed.firstName}.

Note: An unanswered source leaves a hole in the sentence ("Which brand of did you buy?"). Always pair piping with a required source or display-logic gate.

Put it to work in Surveti.

Start free — no credit card required.