Snap XMP Help

Inserting dynamic text

You are here:
< All Topics

Dynamic text (or piping) is a feature in online editions that lets you change text in your questionnaire based on the responses entered by the participant. This can be used to provide a personalized experience as the participant progresses through the questionnaire.

There are many uses for dynamic text:

  • change the question text based on the responses to previous questions
  • change the answer codes based on the responses to previous questions
  • customize instructions based on the responses to previous questions
  • include text created using a derived variable calculated from a previous response
  • insert system paradata including case number and interview date and time information

In Snap Desktop, dynamic text is added to the questionnaire using Variable fields. When you insert a Variable field it is shown as a tag in the text where it is inserted. When the participant accesses the questionnaire the tag is replaced with the dynamic text.

Inserting a previous response into the text

  1. In the Survey Overview window, open the survey in the Questionnaire window.
  2. Position the cursor where the dynamic text will appear. Ensure the toolbar topic is set to Font.
  3. Click the Insert button and select Variable Field from the menu. This displays New variable field dialog.
NewVariableFldDlg.PNG
  1. The Variable list contains all the variables and paradata for the questionnaire. Select the variable to insert from the list.
  2. In Aspect, select the type of text to insert. There are three aspects to choose from: Reply inserts the question response; Name inserts the question number and Context inserts the current context.
  3. In Modify case, choose the case used to display the text: Normal, UPPER CASE, lower case, Sentence case, Title Case.
  4. Click OK. The question number is displayed within curly brackets, e.g. {Q4}, to indicate that this tag will be replaced by the dynamic text when a participant is answering the questionnaire.
  5. To view the text, click the Data Entry button DataEntryIcon.png on the main Snap Desktop toolbar and select Interview mode InterviewModeIcon.png to enter a test case.
  6. Once data has been added, the text substitution can also be viewed within the Questionnaire window by selecting the Data View mode DataModeIcon.png .

Using text substitution automatically adds a page break above its location in the questionnaire. This is not displayed as a page break in the Questionnaire window but is inserted during the interview.

Example of dynamic text

One use of dynamic text is where you wish to ask a general question followed by further questions that ask for more information about the initial choice.

The first question asks the participant about their favourite fruit juice.

Initial dynamic text question

Although subsequent questions could be asked with a generic question text, dynamic text provides a clearer and personalised question text. The dynamic text is entered as shown with the Modify case field set to lower case.

Modify variable field

The next questions are displayed with {Q1} representing the dynamic text.

Question text with dynamic text tags

Viewing the text in Data View mode shows how the question text will be displayed during the interview.

Viewing dynamic text in data view mode
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Contents