Yes, I got the fix from your post. Your current response works perfectly - thanks!
Fantastic!! Now if I can get this to work in a loop, I am good. Thanks!
OK if there is no deconstructor, then that is not the source of the problem. The problem still remains that given the code that I posted (attached above - no choice but a different discussion) will not set the embedded data var to a value that persists at the end of the survey. In my case, in which I built a user-defined interaction into the qualtrics question, it is essential that I collect backend user performance data from the my specialized interaction. Unlike many other examples where the user links to an outside website and then is redirected back to qualtrics, it is essential for our experiment to actually embed the interaction into the qualtrics question. I have successfully built the interactions that we need for our experiment but I must also be able to grab this backend data. Getting the data itself is straightforward. But I can't assigned the backend data to an embedded data variable and get the embedded data var value to persist to the end of the survey.
Here is a simple example of the problem.
OK. For my real project, I am setting the values of the embedded data directly. I was just trying to play with the other "predefined" data because I thought that it might be more persistent. Even when I set my user defined embedded data, I cannot get it to persist past the end of the survey. For example, let's suppose that I use the setter function to set my embedded data value to 17, when the survey ends, my embedded data value is reset to null. This is why I hypothesize that there is a deconstructor for the embedded data object that resets it to null on close of survey. Is there a workaround? I will post an example of an explicit set of embedded data to a literal to demonstrate that the value is not persistent after the end of the survey. Thanks for all feedback!
exported survey attached
I tried your solution of using only the limited name for the var and the value . When I dumped out my values at the end of my survey, the value of demo1InnerHTML was still null. Were you able to dump out a value at the end of your survey that you had set within the survey to this var?
Wow thanks! I will try this and see if it works.
I will check on the jfe. Yes the data is set via the setter function. Did you actually run the code and then dump the data after the completion of the survey?
Yes. I need the embedded data *after* the end of the survey. I built a number of interactive experiences, embedded within the qualtrics questions. I did not include the interactive experiences in the above code but the above code illustrates the problem. I need to basically collect the "clickstream" of the interactive experiences. I have the experiences working and the collection of the clickstream into embedded data vars. Now I just need to get the embedded data vars to persist at the end of the survey.
see file
Hi - Thanks for your comment. I am working with Qualtrics support as my code is kicking out some "access denied" problems. Neither backticks nor marking the text as "code" is working. I will post the code as soon as the problem is resolved. Meanwhile if anyone wants to think about this...What appears to happen is this -> I assign my embedded data var a value on a question. On exit of the survey, it appears that some kind of deconstructor for the embedded data object reverts the value to null. If you are interested in the code, I will try to attach a file in the next post.
See above. Sorry that I did not comment when posted. Basically, I am trying this with the most minimal code. As you can see from the xml data export, the embedded data does not retain the value of the timing var that was assigned to it. Thanks!
html: Sample Page <p>Sample Paragraph</p> <p id="demo1">Sample</p> <p> </p>
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.