APIs & Integrations

Igor2
Member

IE 11 SCRIPT5009: 'jQuery' is undefined (again)

Hi !

 

I'm using query 2.2.3 and 

js.hsforms.net/forms/v2.js


On iE11 getting  SCRIPT5009: 'jQuery' is undefined

 

let $form = $(this);
let formId = $form.data('form');
let redirectUrl = $(this).data('redirect-url');
let formConfig = {
formId,
target: `[data-form="${ formId }"]`,
portalId: '2589226'
};

hbspt.forms.create(formConfig); // eslint-disable-line no-undef

 

(function ($) {
    $(document).ready(function() {

    });
 })(jQuery);

Doesnt help (

Getting that error only on IE 11.

 

Thank you in advance !

 

0 Upvotes
1 Reply 1
lscanlan
HubSpot Alumni
HubSpot Alumni

IE 11 SCRIPT5009: 'jQuery' is undefined (again)

Hi @Igor2,

 

Sorry for delyed response here, but I'm wondering if you ever found a solution to this? If not, could you link me to a page where you're having this issue? This may be some kind of compatibility issue with jQuery and IE11, but I'll be happy to run some testing on it. For what it's worth, I did find a threads about a similar-sounding issue on Stack Overflow: https://stackoverflow.com/questions/25077612/jquery-not-working-with-ie-11. But also, you shouldn't need jQuery to embed a HubSpot form on a non-HubSpot-hosted page.

 

Let me know if you have any questions here.

 

 - Leland

Leland Scanlan

HubSpot Developer Support
0 Upvotes