Hi everyone, For a research study, I would like participants to allocate 100 tokens among two recipients. Each token is worth $5. In a simple version of the question, I managed to have a javascript code, such that when participants entered the token allocations (e.g., 50/50), they would automatically see the implied $ amount ($250/$250). To make the question more appealing and intuitive, I would like participants to move slider bars indicating the token allocations (instead of entering the desired amounts). While participants adjust the sliders to decide how many tokens to allocate, I would like the text on the screen to also adjust and display the implied $ amount. Searching online I found this link (https://stackoverflow.com/questions/29538632/in-qualtrics-how-to-dynamically-connect-two-sliders) to add two connected sliders to my question. I've added it to my question. The problem is that I can't manage to change the javascript code such that, when the participant moves the
Hi, I have a loop and merge for a question, and save its values for later. In the survey flow, I first create embedded variables that are empty these are: "receiver1id" and "shared1" ... through "shared20". The "shared1" through "shared20" work well: they are saved in data export. The "receiver1id" shows in the survey, when I ask it to display receiver1id value. But is not in the data export. My javascript code is shown below. Would someone know why "receiver1id" does not save, but the other variables do? Thank you! //STORE IDvar receiver1id = "${lm://Field/1}"; //STORE WHICH VIDEOS WERE SHARED IN THE CURRENT LOOPvar shared1 = "${lm://Field/2}";....// output to idQualtrics.SurveyEngine.setEmbeddedData("receiver1id", receiver1id); // output to shared varsQualtrics.SurveyEngine.setEmbeddedData("shared1", shared1); ...
Hi everyone,In my Qualtrics survey, I have a question for which I use loop & merge. Field 1 is an id that takes values 1 or 2 (for testing purposes). I set the loop and merge to randomize loop order and present only 1 of total loops. At the top of the survey flow, I create an embedded data variable "id" (and "receiver1id"), leaving it empty. In javascript I write the following code. The problem is that id and "receiver1id" are always empty. Could anyone point out my mistake?Qualtrics.SurveyEngine.addOnload(function(){//input var id = parseInt("${lm://Field/1}"); // output to idQualtrics.SurveyEngine.setEmbeddedData(id, receiver1id); Qualtrics.SurveyEngine.setEmbeddedData(id, id); });Thank you!
Hi everyone, I have a survey in which I'm asking individuals "Would you like to participate in program A?". There are two answer options "Yes, I'd like to participate in _________ sessions" or "No". How can I add the text after the text entry box (add "sessions") in my case? Thank you very much in advance!
Hi, I would like participants in a study to allocate 100 points between two participants (A and B). Points are converted into cents at different rates. With help, I now have a javascript code that works when the constant sum question is of Choices type. To make the question more intuitive, I'd like to change it to Bars type. However, all the formatting I had with the JS code gets messed up. Can you give me advice on how to change my JS code for a constant sum question of Bars type? Here is my code now: Qualtrics.SurveyEngine.addOnload(function() { var inputs = $(this.getQuestionContainer()).select('input[type="text"]'); $(inputs[0]).insert({after: '<div id="input1" style="display: inline-block; width: 600px; \\ text-align: center, left; font-family:arial,helvetica,sans-serif;"> \\ \\ <span style="font-size:14px;"><span style="font-family:arial,helvetica,sans-serif;">\\ <strong><span style="color:#0000CD;"></span>
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.