We are designing a study that involves a list of words, a distractor task, and a test. For the distractor task, they complete math verification problems (e.g., 4 + 6 = 10 ?True or False) for 1 minute. This means that we will either need to resample problems randomly, or sample from a very long list that even the fastest participant cannot complete in 1 minute.
What we cannot figure out is how to get Qualtrics to advance to the next block after 30 seconds. We tried defining “timeleft” as 30 seconds and using the following code. But after the 30 seconds are up, Qualtrics then rapidly displays and automatically advances past all remaining items. This is unacceptable because it is 1) confusing and 2) takes up time when time is what we want to control.
"Qualtrics.SurveyEngine.addOnload(function()
{
var that = this;
this.questionclick = function(event,element){
if (element.type == 'radio') {
that.clickNextButton();
}
}
var timeleft = parseInt("${e://Field/TimeLeft})");
var timer = setInterval(function(){
if(timeleft <= 0){
clearInterval(timer);
$('NextButton').click();
}
timeleft--;
},1000);
$('NextButton').onclick = function (event) {
Qualtrics.SurveyEngine.setEmbeddedData('TimeLeft', timeleft);
}
});
Qualtrics.SurveyEngine.addOnReady(function()
{
$('NextButton').hide();
$('PreviousButton').hide();
});
Qualtrics.SurveyEngine.addOnUnload(function()
{
$('NextButton').hide();
$('PreviousButton').hide();
});"![]()
Block Timing Help
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
