Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

How can I delay a question from appearing?

Goldie
Goldie Provo, UTFounding Community Member CEP (Chief Executive Paw-ficer)

Is there a way for me to delay a question from appearing? I have a video that I would like the respondent to watch for 30 seconds before a question appears right below it on the same page.

Best Answer

  • AnthonyR
    AnthonyR Tucson AzFounding Community Member, Community Member Superuser ✭✭✭✭
    edited November 2017 Accepted Answer

    Add the following JavaScript to the question you would like a delayed:

    Qualtrics.SurveyEngine.addOnload(function()
    {
        this.getQuestionContainer().hide();
    
    });
    
    Qualtrics.SurveyEngine.addOnReady(function()
    {
        var delayTime = 30000 //This is the time of delay
        var that = this;
        setTimeout(function(){that.getQuestionContainer().show()}, delayTime);  
    
    });
    

    The timing can be updated by updating the value of delayTime, which is set in milliseconds.

Answers

  • Goldie
    Goldie Provo, UTFounding Community Member CEP (Chief Executive Paw-ficer)

    Perfect! Thank you!!