I've got a v7.2 site which is using Web Forms for Marketers v2.4 rev 151103 (WFFM) for some forms. I am seeing some errors in our javascript that I strongly suspect is related to the fact that WFFM is including an old version of jQuery.
What is the accepted way to handle this? Our code, as an example, trying to use the .on
method to adjust an iFrame height, but this wasn't added until jQuery 1.7 (WFFM includes 1.4.2)
$('.modal-body iframe').on('load', function() {
this.style.height = 0;
this.style.height = this.contentWindow.document.body.scrollHeight + 'px';
});
Update
I've tried .noConflict(), but this only solves the issue on pages I have the Form rendering on (and therefore two versions of jQuery). Is there a way to get WFFM 2.4 to no output the reference to jQuery? I know later versions have settings to supress using Bootstrap.