Need help grabbing embedded data | XM Community
Skip to main content
Solved

Need help grabbing embedded data

  • September 9, 2018
  • 2 replies
  • 13 views

I'm trying to pull embedded data from the survey flow tab but I can't seem to grab it. The purpose of the code is to grab the string, separate it into integers, then change the integers before recombining them into a string again. I've searched around and my code looks the same as others but it's still not working, any help would be greatly appreciated, here's the code. ` /*Place your JavaScript here to run when the page is fully displayed*/ //record current date/time as startTime var startDate = new Date(); //pull the pracTime variable from qualtrics var theString = "${e://Field/pracTime]";// <--- This is the part that isn't working //theString = "'0,0,0,FU,0,0,0,0,0,0'"; console.log(theString); //split the string into an array var allTimes = theString.split(","); console.log(allTimes); console.log("anything"); `

Best answer by Anonymous

Hello @Roger There should be "}" (instead of "]") closing in the var theString line
View original

2 replies

  • 0 replies
  • Answer
  • September 9, 2018
Hello @Roger There should be "}" (instead of "]") closing in the var theString line

  • Author
  • 2 replies
  • September 9, 2018
Ugh it's always these tiny details that mess me up, thank you so much!

Leave a Reply