SurveyFactory Documentation Documentation Page template variables
Page template variables

Template variables > Page

Page template variables are defined for each question in your survey that is of type Page. 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.

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

   # Additional variables for Page question types
   title
   numerrors

page.

This document assumes that you have the page object in a variable named page. The current page being displayed in your survey will be accessible in the variable name survey.page. However, you could also retrieve it by using a custom template function such as getQuestion:

[% otherpage = getQuestion(id); %]