Hi - I'm new to Qualtrics and JavaScript. I can't get the simplest code to set embedded data to work. I've seen other posts on the topic, but I'm still stuck.
I created a field called "Field1"
I created a question with JavaScript to set it's value
The next question uses Field1

And when I preview the survey, nothing shows.
I think I'm doing all the steps in the other examples, but it's not working.
Thanks for any help!!
Solved
Set Embedded Data
Best answer by resh_kr
mhv Try this:
Qualtrics.SurveyEngine.addOnPageSubmit(function(type)
{
if(type == "next")
{
Qualtrics.SurveyEngine.setEmbeddedData("Field1", "Test");
}
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
