Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

IE11 doesn't support addOnReady Method

HPowell
HPowell Austin Qubie ✭

My code below receives the following error on IE11.

Qualtrics.SurveyEngine.addOnReady(function()
{
console.log('test');
});

Error:
Failed executing Page "ready" event handler TypeError: Object doesn't support property or method 'includes'

Does IE11 not support this Qualtrics method or am I missing something?

Answers

  • TJUH_Kai
    TJUH_Kai Philadelphia, PA Guru ✭✭

    Can you paste all the code you added to the "Add JavaScript" area, there must be somewhere it uses the keyword "includes" which is not supported by IE11.

  • HPowell
    HPowell Austin Qubie ✭
    Qualtrics.SurveyEngine.addOnload(function()
    {
        /*Place your JavaScript here to run when the page loads*/
    
    });
    
    Qualtrics.SurveyEngine.addOnReady(function()
    {
    console.log('test');
    
    });
    
    Qualtrics.SurveyEngine.addOnUnload(function()
    {
        /*Place your JavaScript here to run when the page is unloaded*/
    
    });
    
  • HPowell
    HPowell Austin Qubie ✭

    Not seeing the error anymore or anything else in the console (I would expect to see the string 'test').

  • TJUH_Kai
    TJUH_Kai Philadelphia, PA Guru ✭✭

    it must be some other JavaScript you added in other questions that contains the string "includes" that broke the IE11.
    If you create a brand new survey and add the javascirpt you mentioned, you can see the test message without issue. I just tested in my IE11 instance with a new survey.

  • HPowell
    HPowell Austin Qubie ✭

    I am thinking it might have something to do with how our Vanity URL was setup. Could that potentially be a culprit?

  • TJUH_Kai
    TJUH_Kai Philadelphia, PA Guru ✭✭

    I am only using anonymous link for testing. maybe if you try to use anonymous link to test and you still got the error, then your problem is not related to vanity URL.