Hi all,
My survey's header contains a couple of custom classes and helper functions that I intend to use throughout the survey. I am able to access the helpers from (any) question's addOnload(), but when I try accessing classes I get a reference error.
I have reduced it to the following minimum sample. Can someone please help me figure out what's going on?
Header:
class ED { static getValue() { console.log("Hi from static getValue") };
}
function myFunc() { console.log("Hi from myFunc!");}
Question:
Qualtrics.SurveyEngine.addOnload(function(){myFunc(); // Outputs "Hi from myFunc!" on console
ED.getValue(); //ProducesReferenceError
: ED is not defined
});
