Record time at different stage / popup window | XM Community
Skip to main content
Hi all,



I have several questions and wondered if you could help me.



1) I have this java code for a pop-up window, but I would like to know, when they close this window.

So when I extract data on excel, I would like to have a column where it shows me when they closed this popup window.



Qualtrics.SurveyEngine.addOnReady(function()

{ jQuery("[id*='dialog']" ).dialog({ autoOpen: false});

var delayTime = 3000; //This is the time of delay

setTimeout(function(){jQuery("[id*='dialog']" ).dialog({ autoOpen: true, draggable:true, scroll:false, height:'auto', width:'750x',

open: function(event,ui){

$(event.target).parent().css('position', 'fixed');

$(event.target).parent().css('top', '5px');

$(event.target).parent().css('left', '100px');

}

})}, delayTime);

});



2) On this same page, I want a button that people can click on see the same pop-up window. But I don't want to button to be displayed before they see the popup from 1). The code I have for this right now is below. I also want to record the time (1) when they click on this button, and (2) when they close this popup.



Qualtrics.SurveyEngine.addOnReady(function()

{jQuery("[id*='dialog']" ).dialog({ autoOpen: false});

// jQuery('body').on('click','.ui-widget-overlay',function(){ jQuery("[id*='dialog']").dialog('close'); });



jQuery( "#btn1" ).click(function() {

jQuery("#dialog").dialog( "option", "modal", true );

jQuery("#dialog").dialog( "open" );});



});



3. Lastly, it would be great if I can record time when they click on the choice. (this is multiple choice question).



THANK YOU SO MUCH IN ADVANCE!!
Be the first to reply!

Leave a Reply