Hi all,
First of all, I appreciate all posted answers and discussions in this community. They are helpful and have answered most of my questions.
I am trapped in a JavaScript coding issue. My goal is to record the dates on which respondents answered specific questions in my survey via an anonymous link. I've set up the embedded data in the survey flow and then entered the code I learned from this community. However, the date cannot be recorded. Below is my code:
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
var curDate = "${date://CurrentDate/m%2Fd%2FY}";
Qualtrics.SurveyEngine.setEmbeddedData( 'DateConsentFormSub', curDate);
});
I am grateful for your consideration of this question. Thank you!