Hi,
I have code that has a timer for 6 minutes before participants can continue. For approximately 10% of participants, the next button never appears. Does anyone know why this would happen? The majority of participants are able to proceed
rma703
This does happen sometimes, hence I would recommend using JavaScript to hide it. Something as mentioned in this thread.
Hide "Next Button" for 30 seconds and display it after time passes. — XM Community (qualtrics.com)
Hope it helps!
Sorry, I am very new. What does JS mean? I do not know if this code will resolve the issue, as I believe I used this code to create the code for my problem.
Qualtrics.SurveyEngine.addOnReady(function() {
var qobj = this;
qobj.disableNextButton();
var msTimeRemain = (6*60*1000)-(Number("${q://QID22/ChoiceNumericEntryValue/3}")*1000)-(Number("${q://QID27/ChoiceNumericEntryValue/3}")*1000)-(Number("${q://QID174/ChoiceNumericEntryValue/3}")*1000)
// ^ Update QIDx to QID of timing question on previous page ^
if(msTimeRemain>0) setTimeout(function() { qobj.enableNextButton(); },msTimeRemain);
else qobj.disableNextButton();
console.log(msTimeRemain)
});
Qualtrics.SurveyEngine.addOnReady(function() {
var newName = 'Begin Practice Phase'; //Update - New Next Button label
var lastLoopOnly = true; //Last loop only? Value doesn't matter to non-loops
//No changes below
if(!lastLoopOnly || "${lm://CurrentLoopNumber}" == "${lm://TotalLoops}") {
var nb = jQuery('#NextButton');
nb.val(newName);
nb.attr('title', newName);
}
});
rma703
I have mentioned the thread which has the code.
P. S js is javascript
Sorry, to clarify, I used the original code you linked in creating my own code.
rma703,
If any of the piped timing questions are skipped due to branch or skip logic, then your JS will throw an error because the result of Number("") isNaN. If that is a possibility, you need to adjust your code to account for it.
Hi TomG so they are just reading instructions, so there are no opportunities to skip questions. It's odd, because it works 9/10 but some participants get stuck
https://community.qualtrics.com/XMcommunity/discussion/comment/55624#Comment_55624If msTimeRemain <= 0 then they will get stuck because the Next button will never be enabled.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.