How to record date/time that a question was completed? | XM Community
Skip to main content
Question

How to record date/time that a question was completed?


Forum|alt.badge.img+1

Hi, I have a survey that users are intended to access over a course of several months before submitting it. I want to track within the survey the date/time certain pages in the survey were viewed. I tried this Java script on an item, and also added a “DateMod1” embedded variable to the top of the survey:

 

Qualtrics.SurveyEngine.addOnLoad(function()
{/*Place your JavaScript here to run when the page is fully displayed*/
    var curDate = "${date://CurrentDate/m%2Fd%2FY}";
    Qualtrics.SurveyEngine.setEmbeddedData('DateMod1', curDate);
});

 

The embedded variable stays blank though even after passing that item/page. How do I fix this?

2 replies

vgayraud
QPN Level 5 ●●●●●
Forum|alt.badge.img+46
  • QPN Level 5 ●●●●●
  • 307 replies
  • July 12, 2024

Are you using the simple layout?


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 1 reply
  • July 12, 2024
vgayraud wrote:

Are you using the simple layout?

No, its the classic layout.


Leave a Reply