8

I can't seem to find the answer on how to set embedded data with javascript in Qualtrics.

Here is what I have:

    Qualtrics.SurveyEngine.addOnload(function()
{
     Qualtrics.SurveyEngine.setEmbeddedData( 'TimeStamp', "${date://CurrentTime/MS}" );

});
dreftymac
  • 31,404
  • 26
  • 119
  • 182
user586581687a
  • 133
  • 1
  • 7

1 Answers1

13

You need to add it to your survey flow.enter image description here

Your syntax appears to be correct, so if you do this, you should be good to go!

dreftymac
  • 31,404
  • 26
  • 119
  • 182
Cayde 6
  • 617
  • 6
  • 19
  • 1
    A caveat should be mentioned. You cannot set the value of an Embedded Data and call it using piped text within the same question. Maybe there was something I missed but I could not make it work. – deps_stats Sep 14 '21 at 01:11