Results not showing up in results section | XM Community
Skip to main content

Hello all,
I've added a custom working memory task to my survey. Participants can complete the task, and according to the console log the results are being tracked, but they aren't showing up in the Results section.
Based on my extremely, extremely limited understanding of JS, I think this is where the results are supposed to be:
 console.log("nBackCondition : ", ALLtrialcond);
console.log("nBackResponse : ", ALLtrialresp);
  
    Qualtrics.SurveyEngine.setEmbeddedData("nBackCondition", ALLtrialcond);
    Qualtrics.SurveyEngine.setEmbeddedData("nBackResponse", ALLtrialresp);
But it's not showing up for me anywhere. Any advice would be really helpful!

Did you initialize nBackCondition and nBackResponse in the survey flow?


https://community.qualtrics.com/XMcommunity/discussion/comment/52860#Comment_52860i didn’t think that I had to- where would initializing go in the code?


In the survey flow, prior to the block that contains the question with JavaScript.


https://community.qualtrics.com/XMcommunity/discussion/comment/52883#Comment_52883Oh I'm not sure how to do that! I didn't know I could put new code in between blocks?


On the previous block click 'Add Below" then click "Embedded Data".


https://community.qualtrics.com/XMcommunity/discussion/comment/52887#Comment_52887Oh ok! And then I just copy and paste those two elements in....somewhere?
Thank you so much for your help!


It should look like this:
image.png


https://community.qualtrics.com/XMcommunity/discussion/comment/52889#Comment_52889Ok! And then, in theory, the results from the test will show up in the results section? Or are there any other steps?
ELI5?


That's all you need to do. Those fields will now be included in the response data. If your JS populates them correctly, they will will have values.


https://community.qualtrics.com/XMcommunity/discussion/comment/52891#Comment_52891THANK YOU!!!


https://community.qualtrics.com/XMcommunity/discussion/comment/52891#Comment_52891Hi there! You were so helpful last time, I'm hoping you can help me again!
It's another issue with the embedded data. I did it just as you said before, and it worked in my practice survey but in the actual survey, the data isn't showing up. What might be the trouble?
I double checked and the JS is identical in both surveys. I put the embedded data in the block immediately preceding, and as near as I can see what I've written is identical as well. Any thoughts?


https://community.qualtrics.com/XMcommunity/discussion/comment/54130#Comment_54130There is not much to go on. The same suggestions I gave earlier apply. Also, make sure your 'identical' JS doesn't have anything that is specific to your test question (like a hard coded QID).


https://community.qualtrics.com/XMcommunity/discussion/comment/54131#Comment_54131Oh how frustrating. Ok, I will keep trying. Thank you!


https://community.qualtrics.com/XMcommunity/discussion/comment/54131#Comment_54131Hmm. The person who wrote the code doesn't think there's anything specific to the test question. Also if it makes a difference, the labels for the embedded data are there. It's just the actual answers that aren't. Does that shed any light on the problem?


https://community.qualtrics.com/XMcommunity/discussion/comment/54157#Comment_54157The labels being in the response data mean that you defined the fields in your survey flow. So, the problem is setting the values with JS. Check your browser's console for JS errors.


Leave a Reply