I'd like to use a loop-and-merge field that contains values 1 and 2 to determine whether "1" is chosen or "2" is chosen when the question is displayed.
However, the code below throws an "unexpected {" error:
Qualtrics.SurveyEngine.addOnload(function()
{
var questionId = this.questionId;
questionID.setChoiceValue(${lm://Field/9}, true);
});
And even this code (where I've simply tried to get "1" to be chosen) doesn't work:
Qualtrics.SurveyEngine.addOnload(function()
{
var questionId = this.questionId;
questionID.setChoiceValue(1, true);
});
I'd be grateful for any help on this.
--Cheers, Mike
Best answer by MikeSmi
View original