In this article
Note: The Survey Router functionality has been deprecated and is no longer available. The content below is for reference only.
This script is used to transfer the respondent and any answers he/she has already provided, to another survey in the routing group, typically the selected target survey - .
Figure 1 - Example of a RedirectToRouterSurvey script
In this case the script used is:
SetStatus('complete')
SetInterviewEnd()
RedirectToRouterSurvey(f('targetSurvey') ,f('uniqueID'),['gender','age','region']);
The script components are:
- SurveyID - here you can supply the required survey ID or use the survey selected by the algorithm. In this case the value delivered by the selection algorithm is to be used.
- Identifier - this is the respondent's identifier, typically the panelist ID, that is used to keep track of the respondent as he/she is re-routed.
- Array of questions - in this case ['gender', 'age', 'region']. These are the question values (the answers already provided by the respondent) that are to be passed on from the original survey to the target survey. Single, numeric and open text variables can be used here. These are optional; you do not have to supply questions to be passed.