Hi. I need some help editing this javascript. I need it to include an hour, not just minutes and seconds.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: 00:10"; header.appendChild(timer);document.body.insertBefore(header, document.body.firstChild);function startTimer(duration, display) { var timer = duration, minutes, seconds; var myTimer = setInterval(function() { Qualtrics.SurveyEngine.setEmbeddedData('timeRemaining', timer); 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 + ":" + seconds; if (--timer < 0) {
I have a section of questions that I need to advance to the next section after 15 minutes. I have inserted the javascript from this page: https://stackoverflow.com/questions/47317718/how-to-use-automatically-move-respondents-in-qualtrics-with-global-timer-for-blo It's displaying the time left nicely, but it's not clicking on the next button after 15 minutes. I need to do this with several other sections/questions after different amounts of time. Can someone help me get the 'click on next button' javascript right?
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.