void redirect(string URL, [boolean continue])
The function redirect()
leads the participant directly to the specified internet address (URL).
true
is specified as the second parameter, the respondent can continue the questionnaire later on the following (!) page.
Note: redirect
should always be by itself on a questionnaire page. Although other commands (e.g. a question) put before this command are executed, nothing is shown. Commands that are put after the redirect()
are ignored completely.
Note: If the second parameter is not specified or set to false
, the questionnaire is marked as completed. This means that the dataset is counted by the function statistic()
for example.
Note: In order to ensure that a survey can be continued at a later point in time, the other internet page must not only send the participant back, but also transfer the interview ID (please refer caseToken()
and %caseToken%
). For example, https://www.soscisurvey.de/projekt?i=WBE0R7V8 – a subsequent call up via personalized link with access code is also possible.
Tip: If the participant uses another internet page in the meantime and subsequently should return to the questionnaire, the other internet page can also send data besides the the interview ID (see above). This can be read on the page after the redirect()
by using a question Device and Request Variables.
redirect('http://www.panel.tld/quotaout.php?panelID=%reference%', false);