I've got this really neat java code (thanks goes to Holly Dixson) that allows for timestamp each click on a new question. However, the challenge is raised for timestamping each click on a grid where there are multiple sub-questions under one question heading.
I'm posting my current code here and if anyone knows how to twig it so that it records multiple times of clicks on a grid, it'd be really awesome!
Qualtrics.SurveyEngine.addOnload(function()
{
var timeStampOfOnLoad = new Date();
Qualtrics.SurveyEngine.setEmbeddedData('timeStampOfOnLoad_QID1', timeStampOfOnLoad);
//alert('QID1 '+timeStampOfOnLoad);
this.questionclick = function(event,element){
var timeStampOfAnswer = new Date();
Qualtrics.SurveyEngine.setEmbeddedData('timeStampOfAnswer_QID1', timeStampOfAnswer);
//alert('QID1 '+timeStampOfAnswer);
}
}
);
Note: I tried to replace QID1 with QID1_1, QID1_2...and repeat the code to make note of the different clicks on a single grid. It didn't quite work out but maybe I'm just not doing it the right way.
Java code timestamp each click on a grid
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.