The two surveys are the same except the most recent survey has some additional questions at the end. The other issue is that there is Java at the beginning of the surveys that takes data from a dropdown and parses it. So when I try to export from one file and import to another, the three fields that use the dropdowns are blank. I think I need to figure out how to run this java on the import somehow. Our Qualtrics implementation specialist is the person who put this Java in, but Qualtrics Support doesn't support it.
Qualtrics.SurveyEngine.addOnload(function()
{
function sortStrings(a, b) {
if (a.toLowerCase() < b.toLowerCase()) {
return -1;
}
else if(a.toLowerCase() > b.toLowerCase()) {
return 1;
}
else {
return 0;
}
}
function parseEDList(EDList, field) {
var EDListArray = EDList.split(";");
EDListArray.sort(sortStrings);
for (var i = 0; i < EDListArray.size(); i++) {
var separatedED = field + (i+1);
console.log(separatedED + " " + EDListArray[i]);
if (EDListArray[i] != ""){
Qualtrics.SurveyEngine.setEmbeddedData(separatedED, EDListArray[i]);
}
}
}
parseEDList("${e://Field/RecruiterList}", "QRecruiter");
parseEDList("${e://Field/DepartmentList}", "QDepartment");
parseEDList("${e://Field/JobTitleList}", "QJobTitle");
});
Please go through the below link, it may help you.
https://www.qualtrics.com/support/survey-platform/common-use-cases-rc/pulling-data-into-a-second-survey-longitudinal-surveys/
Suraj,
What I have is two identical surveys and I need to put the raw data from one survey into another. Both surveys are in use. The client used an incorrect link to the first and I need to get their data in with the correct data in the survey they should have used as we are segmenting due to Covid-19. I hope that makes it more clear.
You can export the data and then import in the actual survey. Check this link for steps.
Unfortunately Rondey, with the JavaScript, this doesn't work.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.