Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

});
like image 825
user586581687a Avatar asked Mar 01 '16 19:03

user586581687a


People also ask

Can you use JavaScript in Qualtrics?

Question JavaScript Editor While Qualtrics does allow for HTML and CSS in the HTML view of the question, the survey editor will strip out any JavaScript. Instead, you include JavaScript in the editor provided by Qualtrics.

How does Qualtrics code data?

When you create a multiple choice question on a Qualtrics survey, Qualtrics automatically assigns a numeric code to each answer. When your survey data is exported to Excel or SPSS, those numeric codes appear in the dataset as "shorthand", and the text of the responses are used as value labels.

Can Qualtrics pre populate fields?

Yes, there is! Click the gear box for the questions you want to prepopulate, then select "Add Default Choices" and follow it from there to insert your Embedded Data Fields in the appropriate text fields.


1 Answers

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!

like image 126
Cayde 6 Avatar answered Oct 07 '22 01:10

Cayde 6