Solved
Display Embedded Data in list view for multiple choice question
I want to ask a question that shows a list of software that pertains to the user taking the software in list view. One user may see 2 software's and one may see 24 software's (Depends on the data in the contact list).I have embedded the contact list to the survey flow. I want to ask the following: Are there any software that you would like to keep? (They can then see the software's that pertain to the user taking the survey). They can then select yes or no because it is a multiple choice question. I am not that familiar with javascript so if you could attach it, it would be greatly appreciated. Thank you!!
Best answer by Anonymous
Paste the following code in the js(onReady) of the question
Hello @Cgandhi07
var s=[
"${e://Field/Title 1}",
"${e://Field/Title 2}",
"${e://Field/Title 3}",
"${e://Field/Title 4}",
"${e://Field/Title 5}",
"${e://Field/Title 6}",
"${e://Field/Title 7}",
"${e://Field/Title 8}",
"${e://Field/Title 9}",
"${e://Field/Title 10}",
"${e://Field/Title 11}",
"${e://Field/Title 13}"
]
var i;
var a='';
for (i = 0; i < s.length; ++i) {
if(s[i]!=''){
a=a+"<li>"+s[i]+"</li>";
}
}
jQuery("#"+this.questionId+" .QuestionText").append(a);
Now in the above code just add all the titles in the array
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
