I am using a webhook in the JavaScript of one of my survey questions to export some survey data to Zapier (an automation engine).
I am able to successfully send data out with the webhook, however, it then breaks the survey and I get the error “#B.1ykou2s.lnlu16va” shown below when I try to move on to the next question.
Any thoughts on what could be the solution?
Error after clicking “next” button to go to next survey question:
My JavaScript code for the webhook is here:
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
var request = new XMLHttpRequest();
request.open("POST", "https://hooks.zapier.com/hooks/catch/xxxxxxx/xxxxxxx/", true);
var params = {
q_response_id: "${e://Field/ResponseID}",
email: "${q://QID19/ChoiceTextEntryValue/4}",
content: "example content",
}
request.send(JSON.stringify(params));
});
Thanks.