Pipe answers into question text.

To insert a respondent's earlier answer into a later question, type a token in double curly brackets, such as {{ Q5 }}, into the question text or options. This is piping (also called inserting answers or dynamic text). The same format inserts variables, lists, loop variables and values passed on the survey link.

Insert an answer from an earlier question

  1. Open the later question in the question editor.
  2. Click in the Question field where the answer should appear.
  3. Select Insert answer from previous question, above the right-hand end of the field, and pick the question. Glow inserts the token for you, for example {{ Q7 }} for the answer to Q7 (how often they drink soft drinks).
  4. Click Save & Close.
  5. Check the text in Preview.

You can also type the token yourself. In a choice or the Description field, typing is the only way: the Insert answer from previous question menu appears only while you are in the Question field (or the Text field of a Section), from the second question on.

Token list

Token What it inserts
{{ Q5 }} The answer to Q5. Several answers are separated by commas.
{{ Q5.1 }} Matrix: the answer for the 1st statement of Q5.
{{ Q5.2.1 }} Matrix: the 1st answer for the 2nd statement of Q5.
{{ Q5~1 }} The 1st typed text answer in Q5.
{{ Q5#1 }} The 1st numeric answer in Q5.
{{ variable:key }} The variable named key (a value your survey logic sets).
{{ list_Name }} Every item in the list called Name (items your survey logic adds).
{{ list_Name.3 }} The 3rd item in the list called Name.
{{ loop_variable }} The current loop variable, set up in Survey Settings under Groups.
{{ crd_key }} A value passed on the survey link, for example ?crd_key1=value1&crd_key2=value2.

Pipe an "Other, please specify" answer into a later choice

Borrow from does not carry over a choice that captures text, so add the typed answer to the later question as a choice of its own.

  1. In the later question, add a choice with the text {{ Q24~1 }}. In the demo survey this inserts what the respondent typed at Q24's "Something else (please specify)".
  2. Add display logic to that choice so it shows only when the respondent selected "Something else (please specify)" at Q24. Otherwise respondents who typed nothing see a blank choice.

Pipe a variable, a list or the loop variable

These three tokens work in question text, section text and the Description field.

  • Variable. Q7 sets the variable period to "week" or "month". Q22 reads "How much do you spend on soft drinks in a typical {{ variable:period }}?".
  • List. Q11 adds each brand bought to the list "Bought". The Q22 description reads "Brands you told us you bought:" with {{ list_Bought }} on its own line. A list is shown as bullet points, so give the token a line to itself.
  • Loop variable. Section S3 reads "Your views on {{ loop_variable }}", and Q14 to Q16 use the same token. A respondent rating Zingo sees "How likely are you to recommend Zingo?" at Q14.

Q22 question editor showing {{ variable:period }} in the Question field and {{ list_Bought }} on its own line in the Description field

A respondent who drinks soft drinks a few times a week and bought Norfolk Cola, Zingo and Lumo Zero sees Q22 like this:

Preview of Q22 showing week in place of {{ variable:period }} and the three brands as bullet points in place of {{ list_Bought }}

Good to know

  • Pipes are not renumbered automatically. After you insert or move questions, a later {{ Qn }} can point at the wrong question.
  • Hiding a question does not break pipes. A hidden question keeps its number in the editor, and {{ Qn }} always uses the editor's number.
  • You can only pipe an answer from an earlier question.

Common questions

How do I insert a previous answer into a question?
Use piping: type the question number in double curly brackets in the later question's text, for example {{ Q7 }}. Several answers are inserted separated by commas.

How do I show what the respondent typed in "Other, please specify"?
Use the piping token {{ QX~1 }}, where X is the question number. It inserts the 1st typed text answer from that question.

My piped text shows the wrong answer. Why?
Piping tokens such as {{ Q7 }} are not renumbered when you insert or move questions. Open the question, check which question number the token points to, and correct it.

How do I show the brand name inside a loop?
Type the piping token {{ loop_variable }} in the section text, question text or Description inside the looped group. Glow replaces it with the item being looped.

Related

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.