title: Qualtrics: Transform piped variable using javascript and display it in text?
body: <p>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?</p>
  
  <p>There is the java-script function <code>.toLowerCase();</code> but how do I change a variable in the qualtrics custom javascript and pipe it back into a survey text?</p>
  
  <p><a href="http://www.qualtrics.com/university/researchsuite/developer-tools/custom-programming/survey-javascript-methods/" rel="nofollow">This link</a> explains how to use piped variables in javascript. Say I define a new variable in javascript like this</p>
  
  <pre><code>// my piped variable is ${q://QID12/ChoiceGroup/SelectedAnswers}"
  var selectedChoice = "${q://QID12/ChoiceGroup/SelectedAnswers}";
  var selectedChoiceLower = selectedChoice.toLowerCase();
  </code></pre>
  
  <p>How to pipe selectedChoiceLower back into a question text?</p>
  
  <p>Any ideas?</p>