Skip to content

Instantly share code, notes, and snippets.

@marketinview
Last active January 13, 2023 17:59
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