At one point in my survey (using anonymous links), respondents are redirected out to an external website to complete a task, then redirected back to the survey upon completion:
Qualtrics.SurveyEngine.addOnload(function()
{
var taskStatus = "${e://Field/taskStatus}"
if(taskStatus == "0")
{
var taskStatus = 1
Qualtrics.SurveyEngine.setEmbeddedData("taskStatus",taskStatus);
var targetURL="${e://Field/baseURL}"+"${e://Field/outURL}"
window.location.replace(targetURL);
} else {
this.clickNextButton();
}
});
For any browser in Windows, the redirect happens correctly and when the respondent is returned to the survey, ${e://Field/taskStatus} = 1.
For any browser in iOS/MacOS, the redirect happens correctly and when the respondent is returned to the survey, ${e://Field/taskStatus} = 0.
How should I get ${e://Field/taskStatus} to equal 1?
Be the first to reply!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.