Thanks again. In case anyone else finds this thread useful, I needed to add a / to the second in the html script:you noted some dissatisfaction with
Here's the code now, it case that's helpful.});Qualtrics.SurveyEngine.addOnReady(function(){ var s ="";if("${q://QID40/ChoiceGroup/SelectedChoicesForAnswer/1}"!=""){ s = s+", "+"${q://QID40/ChoiceGroup/SelectedChoicesForAnswer/1}";}if("${q://QID40/ChoiceGroup/SelectedChoicesForAnswer/2}"!=""){ s = s+", "+"${q://QID40/ChoiceGroup/SelectedChoicesForAnswer/2}";} s = s.replace(/,/g,"") jQuery(".selOption").text(s);});
Thank you. I've added that code, just below the If statements . Here's what I'm getting now when I test the quesiton:The line breaks are not being read correctly. Do you have any ideas on how to address this?
Thank you! I went with the JS solution. I now have a block of text though. It would be much easier to read with line breaks. Or even a bullet in front of each line. Do you know how to include a line break in the list? Here's what I've tried so far, just on the line break: Replacing the ", " with: "", ", "\\n", "\\r", "\\r\\n"ex: }if("${q://QID40/ChoiceGroup/SelectedChoicesForAnswer/2}"!=""){ s = s+"\\r\\n"+"${q://QID40/ChoiceGroup/SelectedChoicesForAnswer/2}";}Or is this an issue with the function in the question text?
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.