Hi, I am new to Qualtrics and really can't get past this.
In my Survey, I ask participants to solve some problems, where the parameters of the problems change across questions. For convenience, let's call the set of parameters that define a specific question/problem criterium. Hence, a specific question is identified with its crtierium.
Assume that I have Database (.e.g. csv file) with two columns: a criterium and values of interest.
For each criterium there are multiple possible values.
The problem is the following: everytime a question corresponding to a given criterium is asked (I randomize them) I would like to draw all the possible corresponding values (the one that have that criterium) from the Database and then pick a random value among them. Once the value is picked it would be used within the block where that questions belongs.
As far as I understood, if I was able to put them into an array in JavaScript, then randomizing among the values would be easy.
Then I guess the problem boils down to: is it possible to import values from an external data source, draw them according to some criterium and then put them as embedded data to be used within questions?
Sorry for the long questions, I really appreciate your help!
Andrea
Solved
Setting Embedded Data Valued from External Source (e.g. .csv file or any form of DB)

Best answer by TomG
Yes, you've got it correct. You could write the script in PHP or Python. I will add that the values could be drawn from a database such as MySQL.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.