How can I add a percentage sign (%) after each value displayed in a slider type question?
Solved
Add Percentage Sign (%) After Slider Value in Qualtrics
Best answer by gPandey_715
Hi
Please try adding the below JavaScript in the JS section of your slider question:
Qualtrics.SurveyEngine.addOnReady(function () {
const ulElement = document.querySelector('#' + this.questionId + ' .numbers') || document.querySelector('#question-' + this.questionId + ' .numbers');
if (ulElement) {
const listItems = ulElement.querySelectorAll('li');
listItems.forEach(li => {
li.textContent = li.textContent.trim() + '%';
});
}
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
