title: Embedded data in Qualtrics showing up in the 'Data & Analysis' tab, but is not showing up for participants
body: <p>So I have a bit of JS in my Qualtrics survey that takes the response to a question, and if that response is not empty, it will embed the participant’s response (to be called later in the survey).  If they don’t enter anything, I have made it print a string.  I have done this with the following:</p>
  
  <pre class="lang-js prettyprint-override"><code>Qualtrics.SurveyEngine.addOnUnload(function()
  {
      /*Place your JavaScript here to run when the page is unloaded*/
      var tboxID= "QR~"+this.questionId;
      var hometownStr = document.getElementById(tboxID).value;
  
      Qualtrics.SurveyEngine.setEmbeddedData('hometownStr',hometownStr);
  
      if(!hometownStr || 0 === hometownStr.length)
      {
          Qualtrics.SurveyEngine.setEmbeddedData('hometownStr', "your hometown"); 
      }
  });
  </code></pre>
  
  <p>After the block this question is in <a href="https://i.stack.imgur.com/jlvt4.png" rel="nofollow noreferrer">I have embedded the data</a>.</p>
  
  <p>So, let's say I am asked the question (in which the JS is embedded): <em>What is your hometown?</em>  I either answer that my hometown is (for example) "Paisley", or I leave it blank.  If I <strong>don't</strong> answer the question, the next question will say <em>This is a person from <strong>your hometown</em></strong>.  If I 
  <strong>do</strong> answer the question, it <em>should</em> print: <em>This is a person from Paisley</em>.</p>
  
  <p><strong>However</strong>, the latter example <em>does not print</em> "Paisley" (<a href="https://i.stack.imgur.com/K1gbr.png" rel="nofollow noreferrer">it prints nothing</a>).  FYI, the former example works fine.</p>
  
  <p>The strange thing is that, though "Paisley" is not printed in the survey, <a href="https://i.stack.imgur.com/ovPwT.png" rel="nofollow noreferrer"><em>it comes out in the final data</em></a> (found in the Data &amp; Analysis tab).</p>
  
  <p><em>Note</em>: I am calling the embedded data by <code>${e://Field/hometownStr}</code>.</p>
  
  <p>Does anyone know why this might be happening?  Thanks in advance for any help; please tell me I am stupid and overlooking something major, and this isn't a bug in Qualtrics...</p>
  
  <p>FYI, this code has worked in the past, so I don't think it's an issue with the code.  I refactored some of the questions and blocks and it just stopped working.</p>