I am currently putting together a survey that consists of 20 identical questions, and I want to embed in each of the questions piped text from custom javascript code that will pull randomly without replacement from an array of 80 names (produced as strings) for each participant. So, each participant will be randomly assigned 20 of the 80 names, and each name will be shown piped into the question for each of the 20 identical questions. How can I do this? I am pretty unfamiliar with Javascript and the integration with Qualtrics. Any attempt I try at doing this outside of Qualtrics in a standard Javascript compiler seems to have run time errors.... is this due to a large array of strings? Any help in advance would be much appreciated.
Cheers!
Nicholas
Best answer by npetrov937
View original