SurveyFactory Documentation Documentation Response Content template variables
Response Content template variables
ARTICLE

Template variables > Response Content

Response Content template variables are defined for each question in your survey that is of type Response Content. If you are looking for template variables for another question type, please see template variables. This page details the structure of the question template variables so you can know what to expect when designing your templates.

We strongly encourage the use of the custom template function getResponseContentQuestions() when programming the template for this question type.

question.
   # Variables in common with all content types
   id
   type = 'ResponseContent'
   sortorder
   incompletion
   inloop[]
   template.

   # Additional variables for Response Content question types
   text
   questions[]

[edit] question.

This document assumes that you have the question object in a variable named question. This is most often achieved in a loop, such as:

[% FOREACH question IN survey.questions; %]

or using a custom template function such as getQuestion:

[% question = getQuestion(id); %]

[edit] questions.questions[]

This variable contains a list of the questions for which the responses should be shown. Each item in the list is the sortorder that corresponds to question.sortorder.