AnsweredAssumed Answered

Form submission error on Safari. Form on external CMS.

Question asked by Tucker Allen on Jul 10, 2019
Latest reply on Jul 10, 2019 by Sanford Whiteman

Hi,

 

We are using Marketo forms on our Sitecore cms. We have the forms opening a redirect in a new tab. Everything works as intended except in Safari on mobile. The form just gets stuck at "please wait" Can anyone provide any insight on our code?

 

Here is the page: 

https://kerry.com/applications/pharma-and-biotechnology

 

<script src="//app-ab33.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_2050"></form>
<script>MktoForms2.loadForm("//app-ab33.marketo.com", "117-TLU-222", 2050, function(form) {
    //Add an onSuccess handler
    form.onSuccess(function(values, followUpUrl) {
        // Take the lead to a different page on successful submit, ignoring the form's configured followUpUrl
window.open(
  'https://app.salsify.com/catalogs/762cc756-2d61-48c5-8f83-f5344abcfcd8/products?filter=%3D&page=1',
  '_blank' // <- This is what makes it open in a new window.
);
 
        // Return false to prevent the submission handler continuing with its own processing
        return false;
    });
});</script> 

 

 

Thanks,


Tucker

Outcomes