Hi everybody, I tried to fulfill the field age using the code below:
Qualtrics.SurveyEngine.addOnReady(function()
{
Qualtrics.SurveyEngine.setEmbeddedData("Age", "44")
});
The field is like this:But it doesnt work. How can I do that?
Fulfill a field using javascript
Best answer by bstrahin
The code you have written is pointing to an embedded data field. Those can only get set in four ways:
1) from a contact list (it sounds like you are trying to not upload your .csv as a contact list. However if you did do that then the solution I gave you will work. If you are uploading the .csv into contacts look here to make sure it is reading into your survey.)
2) info in the survey link
3) built-in Qualtrics fields
4) values set in the survey flow
But maybe you are trying to use a webservice to host your .csv so I would look at this page: https://www.qualtrics.com/support/survey-platform/survey-module/survey-flow/advanced-elements/web-service/
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.