Search code examples
javascriptqualtrics

Delayed display of MC in qualtrics


I came across this previous thread (Delay Display of Text in Qualtrics using Javascript) when searching for how to do a delayed display of a MC question in Qualtrics.

The thread was from about a year ago- wondering if Qualtrics has any built in ways to do delayed display? Are the solutions provided in the thread the way to go?

Basically, I liked to display text first, and after a few seconds, have a multiple choice question display under the text. I would still like the original text to be visible to the user.

Thanks in advance!


Solution

  • No, there is no built in way. Yes, the answers from the previous question still apply. However, if you want to hide an entire question the code would be a little different. Add this js to the question(s) you want to temporarily hide:

    Qualtrics.SurveyEngine.addOnload(function() {
        $(this.questionId).hide();
    });
    
    Qualtrics.SurveyEngine.addOnReady(function() {
        var q = $(this.questionId);
        (function () {q.show();}).delay(5);
    });
    

    This doesn't do anything with the question separators. You'd have to add a couple lines code if you want to hide and show those too.