I’m trying to use the Qualtrics API in a custom code block in a survey workflow.
But it complains about the import statement when I include it and complains it doesn’t recognise the api call if I leave it out.
I can’t find an answer on how to call the API here. I contacted Qualtrics technical support but they also don’t know. They said someone here might know.
import Qualtrics from "Qualtrics";
function codeTask() {
Qualtrics.SurveyEngine.setEmbeddedData("a", "b");
}
Thanks