I am implementing jQuery datepicker with merge and loop. I have implemented it to my requirement for one loop. But it requires me to set up an embedded field called 'date' but since I want to loop through (a max. of thirty times), it obviously overwrites the date field. Is there a way to suffix the loop index into my javascript code so that it stores it in different date variables depending on the loop number? I used the code provided in
this question and I think this is where I need to make a change:
Qualtrics.SurveyEngine.addOnPageSubmit(function()
{
Qualtrics.SurveyEngine.setEmbeddedData( 'date', document.getElementById('datepicker').value );
});
Thanks!