I have one block with the following code, which creates a countdown timer from 5 to zero with force advance. I have an embedded variable called blockTimeFlag, which is set to zero and displayed before this block. So the variable changes from 0 to 1 when the timer is up, then it auto advances when I set the question to display only if blockTimeFlag is set to 0. Qualtrics.SurveyEngine.addOnload(function(){var headerCont = document.createElement("div");headerCont.className = "header-cont";headerCont.id = "header_container";var header = document.createElement("div");header.className = "header"header.id = "header_1";var timer = document.createElement("div");timer.className = "timer";timer.id = "timer_1";timer.innerHTML = "Time Remaining: <span id='time'>0:00</span>";headerCont.appendChild(header);header.appendChild(timer);document.body.insertBefore(headerCont, document.body.firstChild);function startTimer(duration, display) {var timer = duration, seconds;var myTimer = setInterva
I am using the following code to set a timer over multiple pages. It works fine, however I want to add a java function to skip to a specific page when the time is up. Qualtrics.SurveyEngine.addOnload(function(){var header = document.createElement("div"); header.className = "header" header.id = "header_1"; var timer = document.createElement("div"); timer.className = "timer"; timer.id = "timer_1"; timer.innerHTML = "Time Remaining: <span id='time'>02:00</span>"; header.appendChild(timer);document.body.insertBefore(header, document.body.firstChild);function startTimer(duration, display) { var timer = duration, minutes, seconds; var myTimer = setInterval(function() { minutes = parseInt(timer / 60, 10) seconds = parseInt(timer % 60, 10); minutes = minutes < 10 ? "0" + minutes : minutes; seconds = seconds < 10 ? "0" + seconds : seconds; var text = ('innerText' in display)? 'innerText' : 'textContent'; display[text] = minutes + ":" + se
I am using loop and merge to loop over all the questions in my block except for the last question. How can I exclude one question from loop and merge? Please feel free to include any JavaScript code.
When participants start the block, I would like to show a timer which counts down from 45 seconds, continuing over multiple pages in the block, and auto advancing to the next block (or the end of the block) when time is up, wether participants answered the last question or not. Please feel free to include any JavaScript code.
Is it possible to pipe a text into a loop and merge field?
How can I run a loop over a block with multiple pages and auto advance to the next block once the time is completed? What specific JS script can I use?
I am trying to build an emotional stroop test. How to you present text randomly from 2 different lists? loop and merge does not work, because you can only randomly present the fields together. Essentially, I want to randomize each field in loop and merge. But that is not possible, so I want to know how to create 2 lists, then randomly present text from those lists to the question text.
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.