I am trying to add custom javascript to a survey question. When I try to put the following code into the java script editor, I receive the warning "Invalid JavaScript! You cannot save until you fix all errors: Unexpected token function". Removing the "async" keyword allows me to successfully save the code. Why can't I use async?
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
async function hello() { return "Hello" };
hello();
});
Page 1 / 1
Maybe because async is not supported in IE11?
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.