Last active
January 13, 2023 17:59
-
-
Save marketinview/94966779c804d74018bf62b31e87eaff to your computer and use it in GitHub Desktop.
Quatrics: Convert Piped Choices to Bullets. #qualtrics #js #jq #pipe #bullets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show a bulleted list here: <div class="bullets">${q://QID84/ChoiceGroup/SelectedChoices}</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>"); }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See additional Qualtrics solutions at: https://qualtricswiki.tgibbons.com/doku.php