Skip to content

Instantly share code, notes, and snippets.

@marketinview
Last active January 13, 2023 17:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marketinview/94966779c804d74018bf62b31e87eaff to your computer and use it in GitHub Desktop.
Save marketinview/94966779c804d74018bf62b31e87eaff to your computer and use it in GitHub Desktop.
Quatrics: Convert Piped Choices to Bullets. #qualtrics #js #jq #pipe #bullets
Show a bulleted list here: <div class="bullets">${q://QID84/ChoiceGroup/SelectedChoices}</div>
Qualtrics.SurveyEngine.addOnload(function() {
var bullets = jQuery("#"+this.questionId+" .bullets");
var ul = bullets.hide().after("<ul></ul>").next();
jQuery.each(bullets.html().split(", "), function(i,val) { ul.append("<li>"+val+"</li>"); });
});
@marketinview
Copy link
Author

See additional Qualtrics solutions at: https://qualtricswiki.tgibbons.com/doku.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment