Both sides previous revisionPrevious revisionNext revision | Previous revision |
en:create:functions:getroute [22.12.2014 17:36] – [getRoute()] alexander.ritter | en:create:functions:getroute [28.07.2016 14:14] (current) – admin |
---|
''string **getRoute**()'' | ''string **getRoute**()'' |
| |
By using ''getRoute()'', it can be determined how the participant came to be on the current page in the questionnaire. Possible return values are: | By using ''getRoute()'', how the participant came to be on the current page in the questionnaire can be determined. Possible return values are: |
| |
* '''start''' -- The questionnaire has just begun. This is the first page the participant is presented with (and also shown for the first time). | * '''start''' -- The questionnaire has just begun. This is the first page the participant is presented with (and also shown for the first time). |
* '''next''' -- The participant clicked on the "Next" button and thus proceeded to the next (current) page. | * '''next''' -- The participant clicked on the "Next" button and thus proceeded to the next (current) page. |
* * '''back''' -- The participant clicked on the "Back" button and thus returned to the previous (current) page. | * '''back''' -- The participant clicked on the "Back" button and thus returned to the previous (current) page. |
* '''repeat''' -- The current page has already been shown and is now redisplayed (e.g. because a compulsory question was left unanswered). | * '''repeat''' -- The current page has already been shown and is now redisplayed (e.g. because a compulsory question was left unanswered). |
| * '''jump''' -- The respondent got to this page by using a navigation button ([[:en:create:functions:buttontopage|buttonToPage()]]). |
| |
| |
===== Notes ===== | ===== Notes ===== |
| |
* Do not try to implement a counter through a combination of ''getRoute()'' and ''registerVariable()'', which repeats a page multiple times. Instead, use ''[[:en:create:functions:looppage|loopPage()]]'' or ''[[:en:create:functions:setpageorder|setPageOrder()]]''. | * Do not try to implement a counter through a combination of ''getRoute()'' and ''registerVariable()'', which repeats a page multiple times. Instead, use ''[[:en:create:functions:looppage|loopPage()]]'', ''[[:en:create:functions:looptopage|loopToPage()]]'', or ''[[:en:create:functions:setpageorder|setPageOrder()]]''. |
| |