Delay choice container with JS | XM Community
Skip to main content

I would like to hide the (multiple) choice container and then show it later. I tried this code, but it doesn't work. Does anyone have any suggestions? Thanks!
Qualtrics.SurveyEngine.addOnReady(function()
{
jQuery("#getChoiceContainer").hide(); 
 setTimeout(function() { jQuery("#getChoiceContainer").show(); },15000);
});

Qualtrics.SurveyEngine.addOnReady(function () {
    const that = this;
    jQuery(that.questionContainer).hide();

    setTimeout(function () {
        jQuery(that.questionContainer).show();
    }, 15000);
});


Thank you, ahmedA. I would like to delay the choice container, not the question container. I tried choiceContainer instead of questionContainer, but it did not work either. Any suggestions?


https://community.qualtrics.com/XMcommunity/discussion/comment/54025#Comment_54025Use this:
Qualtrics.SurveyEngine.addOnload(function() {
var qb = jQuery("#"+this.questionId+" .QuestionBody");
qb.hide();
    setTimeout(function() { qb.show(); },15000);
});


https://community.qualtrics.com/XMcommunity/discussion/comment/54028#Comment_54028Thank you. It doesn't work.


https://community.qualtrics.com/XMcommunity/discussion/comment/54029#Comment_54029Post above edited.


https://community.qualtrics.com/XMcommunity/discussion/comment/54033#Comment_54033Thank you so much. That works!


Leave a Reply