Navigation by question
With Askia 5.5.2, you have the ability to display the tree view of the questionnaire and allow the navigation by question.
In order to achieve this you need two new features only available with 5.5.2:
The first thing to do is to tag the questions you want to display into the clickable summary of responses:
Then, in your internet template, add in your CSS:
#sidebar{
width: 200px;
position:relative;
margin: 5px;
padding: 5px;
float: left;
background: #eeeeee;}
and in your header:
<div id="sidebar"><div> !!Dim Out = ""
Dim i
For i = 1 To Survey.Questions.FilterByTag("Nav").count
Dim Q = Survey.Questions.FilterByTag("Nav")[i]
if Q.hasnodata=false then
Out = Out + "<a href='" + Q.GotoURL() + "&shortcut=" +Q.Shortcut + "'>"+ Q.Shortcut +"</a></br>"
endif
Next i
return Out!!
</div></div>
As as soon we fill the question, the question will be selectable in the tree view . Click on the image below to test it.
You'll find here the 📥 QEX example