Insert Answer from Previous Question

Insert Answer from Previous Question

Insert answers from previous questions

LimeSurvey allows you to insert answers from previous questions into the text of a question.
  • You can refer to answers on the same page and even dynamically update tailored messages as responses change on the page.
  • You can do this by using question code naming.  For more details, refer to the ExpressionScript documentation.
A wizard has been integrated in the WYSIWYG HTML editor (FCKeditor) so that you can easily insert previous question/answer codes. This plugin is called LimeReplacementFields

In order to use this feature in the FCKeditor:
  1. Click the "lime between brackets" icon.
  2. Select a question from the select box.

Editor replacementfields button.png
Only answers from previous pages are displayed.

LimeReplacementFields notice: When you want to delete a reference to a {name} tag, please select all characters from the opening bracket to the closing bracket and press delete: DO NOT erase it character by character with the delete or backspace key, otherwise the field will appear again.

    • Related Articles

    • Question and answer codes

      What codes are Every question, sub-question, and answer option in LimeSurvey has a short identifier — its code: Question codes — one per question, such as Q001. LimeSurvey assigns these automatically; you can rename them. Sub-question codes — one per ...
    • Use answers from previous questions (piping)

      Piping means inserting a participant's earlier answer into the text of a later question — for example, greeting them by name or referring back to a choice they made. In LimeSurvey, you do this by giving the earlier question a question code and then ...
    • Reorder, preview, and manage questions

      Once your questions exist, most day-to-day work happens in the survey editor: changing the running order, previewing the result, reviewing a question's setup, and reusing earlier answers in later questions. This article covers those tasks. For ...
    • Conditions: show a question only when it applies

      A condition makes a question appear only when it is relevant. Ask "Which brand do you drive?" only of people who said they own a car, or show a follow-up only to people who rated you poorly. Two things are worth understanding before you start: ...
    • Question Settings

      Question settings Note: The question settings panel is displayed when you add/edit a question and is located on the right. The settings displayed may vary based on the question type selected. Please refer to the screenshot below for a basic overview ...