[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] question.id
Contains the ID # of the question as listed in the survey editor. This is unique across all of your surveys and is used in getQuestion and other custom template functions.
[edit] question.type
This variable will be set to '{{{type}}}' for a {{{typename}}} question type.