qualtrics

Implementing math operations in Qualtrics- SOS

跟風遠走 提交于 2019-12-11 15:48:40
问题 I'm new to Qualtrics/JavaScript... would appreciate help on Var block1= [parseInt("${q://QID664/SelectedAnswerRecode/1}"), parseInt("${q://QID664/SelectedAnswerRecode/2}"), parseInt("${q://QID664/SelectedAnswerRecode/3}"), parseInt("${q://QID664/SelectedAnswerRecode/4}"), parseInt("${q://QID664/SelectedAnswerRecode/5}"), parseInt("${q://QID664/SelectedAnswerRecode/6}"), parseInt("${q://QID664/SelectedAnswerRecode/7}"), parseInt("${q://QID664/SelectedAnswerRecode/8}"), parseInt("${q://QID664

In Qualtrics, how to save a key response into an embedded data?

偶尔善良 提交于 2019-12-11 02:09:07
问题 I have the code listed below. This was a code recommended by the Qualtrics support team before they updated their system. In this code, you remove the next button, and let the participants answer with key strokes,e.g. J or K. Qualtrics.SurveyEngine.addOnload(function() { this.hideNextButton(); this.hidePreviousButton(); var that = this; Event.observe(document, 'keydown', function keydownCallback(e) { var choiceID = null; switch (e.keyCode) { case 74: // 'j' was pressed choiceID = 1; break;

How to add line break in title attribute using jquery

随声附和 提交于 2019-12-10 23:58:16
问题 Please find my code below which adds a tooltip on mouseover event to a field in my survey engine. What I want to achieve is add line breaks to the tooltip. Any help is greatly appreciated. var $j = jQuery.noConflict(); $j('#choice31QID405').mouseover(function() { $j(this).attr('title','My name is Glenn. <Add a line break>. I am a good boy'. <Add a line break>. I live in New Delhi); }) $j('#choice31QID405').mouseout(function() { $j(this).removeAttr('title'); }) 回答1: Use entity code for line

Auto-advance on choice selection code doesn't work

北慕城南 提交于 2019-12-10 10:14:52
问题 Qualtrics provides some JavaScript that it claims will automatically move participants to the next survey question when they select an answer choice. They have options for single-answer and multiple-answer multiple choice questions, but I only need the former for my survey. I put their code in the correct place, but I can't get it to work. NOTE: I'm trying to make a mobile compatible survey (not just compatible, but very well made for mobile use). Qualtrics' code does not work on mobile

Escaping Qualtrics piped text for use in javascript (more generally, how to safely escape user-generated text)

喜你入骨 提交于 2019-12-08 17:42:02
问题 In my Qualtrics survey I have a free-response (textbox) question. I'd like to get the response to this question into javascript so I can do some complicated text processing and post the result to an external page. It looks like the official Qualtrics way to do that is to use the piped text code: var answer = "${q://QID1/ChoiceTextEntryValue}" But this generates javascript code with the literal response inserted into the code. If a survey-taker puts a quote mark in their response, it will

Google Maps JavaScript API v3 to not work correctly

南楼画角 提交于 2019-12-08 13:43:27
问题 I get the below error message from the console when I try to implement Google Maps to my Qualtrics survey. API Key works properly: "This site overrides Array.from() with an implementation that doesn't support iterables, which could cause Google Maps JavaScript API v3 to not work correctly." AND this is my code (ignore my API key): I am not using any array, so I am not sure where the problem is coming from... /* * Qualtrics Google Map Lat/Long Collector * Version 1.4 * * Written by George

Adding Autocomplete with Javascript to Qualtrics

天涯浪子 提交于 2019-12-08 08:14:43
问题 I'm trying to implement an autocomplete feature to Qualtrics online survey management software. As directed in this feature on the Qualtrics website, I've added the main features of the code to the header of it's Look and Feel section. <br /> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script><script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1

Javascript for Qualtrics

雨燕双飞 提交于 2019-12-06 16:27:50
问题 I need help with a little Javascript. I want to display two images on Qualtrics but after a 5 second delay. To be more clear, Image2 should display after 5 seconds of Image1 being displayed. Qualtrics.SurveyEngine.addOnload(function() { /*Place Your Javascript Below This Line*/ });​ 回答1: You actually don't need Javascript to do this. In Qualtrics you can add a "Timing" question to auto-advance the participant after 5 seconds. Here's how: Insert the 1st image you want to display Add a Timing

How to set Embedded Data in qualtrics with Javascript

…衆ロ難τιáo~ 提交于 2019-12-06 02:59:45
问题 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}" ); }); 回答1: 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

Javascript for Qualtrics

怎甘沉沦 提交于 2019-12-04 22:10:31
I need help with a little Javascript. I want to display two images on Qualtrics but after a 5 second delay. To be more clear, Image2 should display after 5 seconds of Image1 being displayed. Qualtrics.SurveyEngine.addOnload(function() { /*Place Your Javascript Below This Line*/ });​ You actually don't need Javascript to do this. In Qualtrics you can add a "Timing" question to auto-advance the participant after 5 seconds. Here's how: Insert the 1st image you want to display Add a Timing question (set the auto-advance option on the right to "5" for 5 seconds) Insert a Page Break after the Timing