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

Results not showing up in results section


Forum|alt.badge.img+1

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!

15 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5929 replies
  • December 5, 2022

Did you initialize nBackCondition and nBackResponse in the survey flow?


Forum|alt.badge.img+1
  • Author
  • 9 replies
  • December 5, 2022

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


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5929 replies
  • December 5, 2022

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


Forum|alt.badge.img+1
  • Author
  • 9 replies
  • December 5, 2022

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?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5929 replies
  • December 5, 2022

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


Forum|alt.badge.img+1
  • Author
  • 9 replies
  • December 5, 2022

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!


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5929 replies
  • December 5, 2022

It should look like this:
image.png


Forum|alt.badge.img+1
  • Author
  • 9 replies
  • December 5, 2022

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?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5929 replies
  • December 5, 2022

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.


Forum|alt.badge.img+1
  • Author
  • 9 replies
  • December 5, 2022

Forum|alt.badge.img+1
  • Author
  • 9 replies
  • January 17, 2023

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?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5929 replies
  • January 17, 2023

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).


Forum|alt.badge.img+1
  • Author
  • 9 replies
  • January 18, 2023

Forum|alt.badge.img+1
  • Author
  • 9 replies
  • January 18, 2023

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?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5929 replies
  • January 18, 2023

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.