I'm using Leaflet to insert a map into Qualtrics. For one of my markers, I have it set up so that (1) a popup appears with a mouse hover and (2) clicking on the popup continues on to the next page in the experiment:
marker1.on('mouseover', function (e) {
this.openPopup();
this.getPopup()._contentNode.onclick = function () {
document.querySelector("#NextButton").click();
Qualtrics.SurveyEngine.setEmbeddedData("home", "one");
};
});
Is it also possible to use embedded data to also record when the mouse hover occurs with a time stamp? If so, how?
Solved
Add time stamp for hover in Leaflet map?
Best answer by ahmedA
marker1.on('mouseover', function (e) {
this.openPopup();
Qualtrics.SurveyEngine.setEmbeddedData("timestamp", Date.now());
this.getPopup()._contentNode.onclick = function () {
document.querySelector("#NextButton").click();
Qualtrics.SurveyEngine.setEmbeddedData("home", "one");
};
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
