Thanks!! @mcoverdale If I used 80 different questions and pipe the second using loop and merge I end up getting 6400 columns in the data stored... Is there any other way possible??
Thanks! @fleb Can we store our embedded data dynamically into loop and merge fields? What I am trying is to insert specific words into shuffled version of X and shuffled version of Y for example If X=["a","b","c","d","e"] shuffled X = ["b","e","a","d","c"] I want to insert p and q and form new array New X =["b","e","p","a","d","q","c"] and the same with Y. Now I want first element of New X and first element of New Y in my first question and respective second words of X and Y in second question and so on... instead of using random index , is there any other way to display questions ad mentioned above?
Thanks @fleb The issue of storing is still a problem. Though it randomly chooses word from 2 lists and display them, when coming to storage it always stores the same responses no matter what X and Y are displayed. ! This is our embedded fields in survey flow ! It is choosing the Last word from the list while saving back to the QUALTRICS. Is there a possible way to store the randomly displayed word to Qualtrics?
Thankyou @fleb Though we have defined embedded field in the survey flow. We still can't save the word to the csv file. For example ! and our code is we have two embedded fields as: Qualtrics.SurveyEngine.addOnload(function() { /*Place your JavaScript here to run when the page loads*/ }); Qualtrics.SurveyEngine.addOnReady(function() { /*Place your JavaScript here to run when the page is fully displayed*/ /*var order = "${e://Field/random1}" Qualtrics.SurveyEngine.setEmbeddedData('random1', order); document.getElementById("random1").innerHTML = order;*/ var words = ["cat", "dog", "horse"]; //Your words var i = Math.floor(Math.random() * words.length); //randomly select an index var my_word = words[i]; //select a word Qualtrics.SurveyEngine.setEmbeddedData( 'words', my_word); //Send the word to the Qualtrics output, otherwise you would not know which participant get which word //Qualtrics.SurveyEngine.getEmbeddedData('words') document.getElementById("random1").innerHTML = my_wo
Hi @fleb Thank you for your assistance. I've been able to get my questions to display the way I want using both the Loop and Merge technique and JavaScript methods. However, I am having issues with storing the data. When I tried using Javascript, the csv file I downloaded from Qualtrics did not contain the X and Y that the respondent was show. That is, it displayed their response to the question but not which combination of X and Y they were asked. When I use Loop and merge with piped text, another issue arises. Because I have 80 variations of X and 80 variations of Y, there are 6400 combinations that a respondent can be asked. So, if I want to keep collecting data until I have asked every combination, I will end up with 6400 columns. Do you know if there are any features that allow for storing the data differently, or am I stuck with 6400 columns?
I have a follow up on the OP question. Say I want to ask respondents 80 questions of the form "What percentage of X do you think are Y?" For example, let's say X is a list of animals (dog, cat, hippo, horse, etc.) and Y is a list of characteristics (tall, red, blue, short, fat, etc.). So question 1 might be "What percentage of dogs do you think are small?" Question two might be "What percentage of cats do you think are blue?" and so on until we ask each person 80 of these with each combination of X and Y being random. I would like the data to come out in the form of 2 columns for each question. So, column 1 for Question 1 would say which two characteristics the respondent was presented (e.g., dog, small) and column 2 would say what the respondent answered (e.g., 60%-80%). The second question that each respondent saw would then have the same two columns (the combination they saw and what they answered). So, if I ask each person 80 questions, I would end up with 160 columns with one
> @fleb said: > Hi @Nightblade, > you can use JavaScript to get this. > > Here is an example with 2 words: > 1) Put following HTML element with an id to the place where should be your random text: > `<div id="random">.</div>` > > 2) Put following JavaScript to your question: > > Qualtrics.SurveyEngine.addOnReady(function() { > var words = ["cat", "dog", "horse"]; //Your words > var i = Math.floor(Math.random() * words.length); //randomly select an index > var my_word = words[i]; //select a word > Qualtrics.SurveyEngine.setEmbeddedData( 'word', my_word); //Send the word to the Qualtrics output, otherwise you would not know which participant get which word > document.getElementById("random").innerHTML = my_word; //show the word to respondents > }); > > Note: Don't forget to define your embedded field in the survey flow > > Hello @fleb, I appreciate your answer. Could you
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.