Let there be a piped variable in qualtrics (a variable holding values recalled from a previous input by a survey respondent), how do I transform it to lower-case before displaying it?
There is the java-script function .toLowerCase();
but how do I change a variable in the qualtrics custom javascript and pipe it back into a survey text?
This link explains how to use piped variables in javascript. Say I define a new variable in javascript like this
// my piped variable is ${q://QID12/ChoiceGroup/SelectedAnswers}"
var selectedChoice = "${q://QID12/ChoiceGroup/SelectedAnswers}";
var selectedChoiceLower = selectedChoice.toLowerCase();
How to pipe selectedChoiceLower back into a question text?
Any ideas?