JavaScript to autocode answers options from loop & merge into a matrix | XM Community
Skip to main content

Hi,

Could someone help me fix this code that copies the answers from a loop & marge into a matrix?

I think the issue is using “ between the Qualtrics and JavaScript when piping answers, but I'm unsure how to fix it.

 

Qualtrics.SurveyEngine.addOnload(function() {

for (let i = 1; i <= 70; i++) {
  for (let j = 1; j <= 29; j++) {
    this.setChoiceValueByRecodeValue(i.toString(), j.toString(), '${q://" + j + "_QID12/ChoiceNumericEntryValue/x" + i + "}');
  }
}
});

Be the first to reply!

Leave a Reply