Save html question responses as an embedded data | XM Community
Skip to main content

Hello,
I am using a custom html code to implement a headphone test for my experiment. The code I used can be found at https://github.com/mcdermottLab/HeadphoneCheck, and the code I used in my question is as follows:


 
   
   
   
   
   
   

   
 
 
   
   


 

Based on what I learned from previous posts, I set embedded data before the block where my question is located, and I put a JavaScript code as below.
image.pngQualtrics.SurveyEngine.addOnPageSubmit(function()
{
    Qualtrics.SurveyEngine.setEmbeddedData("d1", jQuery("#headphoneCheckDidPass").val());
})
However, when I downloaded the csv file in legacy format, I just see a column named "d1" in which cells are just filled with "headphoneCheckDidPass", not the actual value of this variable. Can anyone tell me what I did incorrectly, and how I may solve this problem?
Thank you very much in advance for your help.

Be the first to reply!

Leave a Reply