Templated question |
|
The templated questions in FeedbackServer is one of the most powerful question types along with the free form question type. Question templates let us create a specific template based on any kind of html, plain text we want, once this templated has been created it will automatically be rendered at runtime using the current answer items available within our templated question.
In order to create a question we first need to setup a template in the Question Templates library.
The template management provides following options to setup :
Using following template FeedbackServer will generate following output for each templated question based on this template :
Template Header
<table style='[answerstyle]'>
Template Body
<tr style= 'background:red'><td>[fs:answeritemlabel]</td><td valign="top">[fs:answeritem]</td></tr>
Template Alternating Body
<tr style='background:yellow'><td valign="top">[fs:answeritemlabel]</td><td>[fs:answeritem]</td></tr>
Template Footer
</table>
This simple HTML table based template will produce the output we can see below. We can of course use any kind of tags, text we want to create our own personalized template, there is really no limitation on how the output can look like.