Hi Team,Embedded Field not filled before page submits as I guess..Qualtrics.SurveyEngine.addOnPageSubmit(function(){xhr.addEventListener("readystatechange", function () {if (this.readyState === this.DONE) {var apiResponse = JSON.parse(this.responseText);var contactInfo = apiResponse.result.elements[0];firstName = contactInfo.firstName;lastName = contactInfo.lastName;Qualtrics.SurveyEngine.setEmbeddedData("ContactFirstName", firstName);Qualtrics.SurveyEngine.setEmbeddedData("ContactLastName", lastName);alert(Qualtrics.SurveyEngine.getEmbeddedData("ContactFirstName"));// Here I am able to get the first name in alert But this field not updating first name in Data & Analysis tab of Survey}Api is returning correct response in var apiResponse
How can I get customer information based on email only?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.