I created a static content text question using the piped text, ${q://QID2/ChoiceGroup/SelectedChoices}, to display the selected choices. This displays the selected choices as a long comma separated string (i.e., "LastName1, FirstName1, LastName2, FirstName2,...). I tried to custom code a function to replace the commas with line breaks using guidance provided here: https://www.qualtrics.com/community/discussion/198/how-to-change-the-separator-for-piped-text
My issue is that this replaces every comma, so, instead of:
LastName1, FirstName1
LastName2, FirstName2
...
I end up with:
LastName1
FirstName1
LastName2
FirstName2
...
Can anyone provide advice on how to replace every other comma?
Thank you so much for any help you might be able to provide.
Best answer by Anonymous
View original