I need to get a matrix question statements populated dynamically. The statements will be included in a contact list field separated by commas. I think the best way to get this done is using javascript. Any ideas on this? Thank you.
Solved
Dynamic statements javascript

Best answer by TomG
Yes, you can parse the list and save the items to embedded data fields. Then pipe those fields into your matrix on a subsequent page:
Qualtrics.SurveyEngine.addOnload(function() {
"${e://Field/cslist}".split(",").forEach(function(val,i) {
Qualtrics.SurveyEngine.setEmbeddedData("stmt"+(i+1),val);
});
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.