About piping
Piping puts an earlier answer into a later text, for example "What do you like most about your Laptop?" after a participant chose Laptop. You insert a placeholder with the question code in curly brackets, and LimeSurvey replaces it with the answer while the survey runs.
Insert an earlier answer
Click the text where the answer should appear: a later question, its help description or the end screen.
In the toolbar above the text, click the ⋮ button (1) and point to Placeholder fields (2).
Under Fields based on previous answers (3), click the question. LimeSurvey inserts a placeholder such as {Q001.shown} at the cursor.

Preview the survey with the eye icon in the top bar, answer the earlier question and check the text.
{Q001.shown} shows the answer the way the participant saw it, for example Laptop. {Q001} gives the answer code instead, for example A002. For text and number questions both give what the participant typed.
You can also type a placeholder yourself. The question must come before the text that uses it, and codes are case-sensitive. See Question and answer codes.
Note: In the editor, a placeholder stays as you typed it. It is replaced only in the running survey. If the earlier question is on the same page, the text updates as soon as the participant answers.
Insert participant and survey data
The same menu inserts data that is not an answer:
- Participant email address, Participant first name and Participant last name come from the participant list. They stay empty for participants who open the survey through a public link.
- Question ID, Question group ID, Survey ID and Survey expiration date come from the survey.
Vary the text
A placeholder can hold an expression. {if(Q001 == "A002", "laptop", "phone")} shows "laptop" to participants who chose the answer with the code A002 and "phone" to everyone else.
Next steps
FAQ
Why does my survey show {Q001} instead of the answer?
The code in the placeholder does not match a question before this text. Check the spelling and the upper and lower case of the code, and that the question comes earlier in the survey.
How do I greet invited participants by name?
Use Placeholder fields > Participant first name. It is filled for participants you invite from the participant list, and empty for everyone who uses a public link.
Related Articles
Validation: make sure the answers you get are usable
About validation Validation checks answers before participants can move on. It ranges from requiring an answer to rules you write yourself as an equation. Everything is set per question in Question settings. Require an answer Select the question and ...
Score answers with assessments
About assessments Assessments turn a survey into a scored one, such as a quiz, a self-test or a screening. Answers carry points, LimeSurvey adds them up when the participant submits the survey, and the end screen shows the message of the rule that ...
Question and answer codes
About question and answer codes Every question has a question code, such as Q001, and every answer option has an answer code, such as A001. Participants never see them. You use them: they identify questions and answers in exports, conditions, ...
Format text in the survey editor
About formatting text You can format every text you write in the editorial area: question texts, help descriptions, and the texts of the welcome screen and the end screen. Click the text and a toolbar appears above it. The toolbar The toolbar: ...
Style questions with CSS
About styling questions with CSS Theme options change fonts and colors for the whole survey. To style single questions, question types or parts of a question, add CSS to your own theme. Your rules go into the file custom.css of your theme, which the ...