Hi all -
Very thankful for this community as I am working to set up a survey that has a lot of answers pre-filled from previous responses. I’ve already found and successfully employed a javascript code to pre-select multiple choice question options based on embedded data; however, I am now not able to duplicate it for some reason.
The code I used was:
Qualtrics.SurveyEngine.addOnReady(function()
{
if ("${e://Field/InvestorRole}".includes("Majority")) this.setChoiceValue(1, true);
if ("${e://Field/InvestorRole}".includes("Minority")) this.setChoiceValue(2, true);
});
I think tried to use it for the next question, reolacing the items highlighted and adding rows as needed (and then, of course, going up in numbers on set choice value - 3, 4, etc.). Now… nothing. Any ideas? I’m very confused. I double checked embedded data was entered properly, no case differences, changes published, etc.