Search code examples
variablesqualtrics

How to set Embedded Data in qualtrics with Javascript


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}" );

});

Solution

  • 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!