Mautic 4.0.0 & PHP 7.4
2 scripts has differences,
app/assets/js/mautic-form-src.js
if (sParts[1] ) MauticSDK.setConfig(MauticSDK.parseToObject(sParts[1]));
media/js/mautic-form-src.js
if (sParts[1] && sParts[1].indexOf("=") !== -1) MauticSDK.setConfig(MauticSDK.parseToObject(sParts[1]));
because of this differences, my form embedded seems does not work.
so ,I fixed “manually script” like this, seems works fine.
before
script.src = ‘https://sample.com/m2/media/js/mautic-form.js?vdbc8f7b7’;
after
script.src = ‘https://sample.com/m2/media/js/mautic-form.js?formId=vdbc8f7b7’;
is this right ??