qualtrics

How to set Embedded Data in qualtrics with Javascript

大兔子大兔子 提交于 2019-12-04 07:50:11
I can't seem to find the answer on how to set embedded data with javascript in Qualtrics. Here is what I have: Qualtrics.SurveyEngine.addOnload(function() { Qualtrics.SurveyEngine.setEmbeddedData( 'TimeStamp', "${date://CurrentTime/MS}" ); }); You need to add it to your survey flow. Your snytax is correct, so if you do this, you should be good to go! 来源: https://stackoverflow.com/questions/35732280/how-to-set-embedded-data-in-qualtrics-with-javascript

On Qualtrics, how to save embedded data with javascript (given that qualtrics has recently been updated and an old SO solution no longer works)

余生长醉 提交于 2019-12-04 05:45:45
问题 A few months ago I used the excellent advice over here to create a survey in Qualtrics with some javascript code that saved people's responses (given by moving a slider) as embedded data. It all hinges on being able to call some functions when the "Next" button is clicked, as is found under $('NextButton').onclick = function (event) in the above link. I wanted to reuse that survey this weekend, and found that the data was no longer being saved. After fiddling around a bit, I realised that

Using operators within a string (Qualtrics + JavaScript)

萝らか妹 提交于 2019-12-02 17:46:02
问题 I am trying to use Qualtrics if anyone is familiar with the program for a survey and I am embedding JavaScript in order to score some of the questions in a specific manner. The problem I have is that I am trying to connect a string with operators but it fails to do so but when I try it in a different editor the string operators work fine. Code: alert("${q://QID5/SelectedAnswerRecode/1}"); which alerts the value, alert("${q://QID5/SelectedAnswerRecode/" + 1 + "}"); this alerts an empty text

It used to be possible to setChoiceValue in Qualtrics. Is there a workaround that does not involve embedded data?

不问归期 提交于 2019-12-02 12:43:39
It used to be possible to use the setChoiceValue method in Qualtrics to have key-presses trigger the selection of a particular option withing a multiple choice question. In fact one could even see the radio-button being "clicked" as a result of pressing a given key on the keyboard. This is no longer the case, apparently due to recent changes in Qualtrics. (An inspection of the resulting Qualtrics data file reveals that no choice value was set.) One suggested workaround has been to write embedded data that indicates the selected choice, instead of the choice actually being selected by

Using operators within a string (Qualtrics + JavaScript)

一世执手 提交于 2019-12-02 09:39:12
I am trying to use Qualtrics if anyone is familiar with the program for a survey and I am embedding JavaScript in order to score some of the questions in a specific manner. The problem I have is that I am trying to connect a string with operators but it fails to do so but when I try it in a different editor the string operators work fine. Code: alert("${q://QID5/SelectedAnswerRecode/1}"); which alerts the value, alert("${q://QID5/SelectedAnswerRecode/" + 1 + "}"); this alerts an empty text box. Note: alert("Hello" + " World"); works fine when I use this/ So if there is anyone who knows

Tracking when an external link is clicked in Qualtrics?

ε祈祈猫儿з 提交于 2019-12-02 07:09:35
问题 Based on these instructions- Javascript code to record click on link to PDF - Qualtrics I set up the link (with unique ID of human) in the question, I added the javascript to the javascript panel in the question but I am not sure what to add into the survey flow section. This is what I have now and it doesn't seem to be working: 1=human Thanks Here is my link I need to track- <a href="http://vpf2.cise.ufl.edu/Classic/Interaction/Prototype/23341" id="human" target="_blank">Test Link</a> and

How to import Qualtrics data (in csv format) into R

梦想的初衷 提交于 2019-12-01 20:42:30
问题 I am trying to import a data downloaded from Qualtrics into R. It is a csv file. However, I encounter 2 problems. R could not figure out the format of each column by itself, probably because row 2 and row 3 (highlighted above) are all useless text. R thinks that all columns are character . However, obviously some are date , some are factor , and some are integer . How can R figure out the data class of each column correctly by itself? library(tidyverse) filename <- "mydata.csv" df = read_csv

How to import Qualtrics data (in csv format) into R

戏子无情 提交于 2019-12-01 19:55:08
I am trying to import a data downloaded from Qualtrics into R. It is a csv file. However, I encounter 2 problems. R could not figure out the format of each column by itself, probably because row 2 and row 3 (highlighted above) are all useless text. R thinks that all columns are character . However, obviously some are date , some are factor , and some are integer . How can R figure out the data class of each column correctly by itself? library(tidyverse) filename <- "mydata.csv" df = read_csv(filename, col_names = TRUE) Parsed with column specification: cols( .default = col_character() ) See

How do I access the responses from previous questions in Qualtrics

余生长醉 提交于 2019-12-01 11:23:24
问题 I have a survey where I'd like to pull the output from a "Pick Group and Rank" list for use in a second question. We need both the items and the ranking. The operation in the second stage is a complicated set of random pairwise comparisons, and the base Qualtrics functionality isn't flexible enough to do it. I have looked through the Qualtrics Javascript API and I assume one of the getChoices* functions is what I want, but I don't know how to reference the previous question. Thanks for any

Javascript code to record click on link to PDF - Qualtrics

放肆的年华 提交于 2019-11-30 09:30:04
问题 For a survey experiment built in Qualtrics, I need to record whether respondents clicked on a hyperlink to a pdf document attached to one of my questions. I have set it up so that the pdf document opens in another tab. I am not proficient with Javasctript. What would be the simplest solution to record this information? Thank you in advance! Another user asked a similar question about tracking hyperlink clicks to an external webpage, but I'm unsure if I can use a click thru when the document