Marketo Form on a Different Domain

Anonymous
Not applicable

Marketo Form on a Different Domain

Hello -

I am trying to bed my Marketo form on a domain that is not associated to my instance. The domain is HTTPS where my form is not (not sure if this would cause any type of issue.) Regardless, the form is not submitting and the attached error is being received. Can anyone provide guidance as to why this is happening?

Bethany

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Form on a Different Domain

Pls link to your live form, can't troubleshoot a screenshot.

Anonymous
Not applicable

Re: Marketo Form on a Different Domain

Form appears when you select "contact sales" on bottom of page: Industrial Devices

SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Form on a Different Domain

You have forms loading from 2 different instances. This causes hard-to-find bugs because the underlying Forms 2.0 library only loads once and uses information from the first instance to respond.

So please choose only one of these:

MktoForms2.loadForm("//app-sjf.marketo.com", "173-ONW-167", 1447);

MktoForms2.whenReady(function (form){
  form.onSuccess(function(values, followUpUrl){

    form.getFormElem().hide();

    document.getElementById('confirmform').style.visibility = 'visible';

    return false;

  });
});

or

  MktoForms2.loadForm("//app-sj07.marketo.com", "400-JUK-127", 2760, function(form) {
    // Add an onSuccess handler
    form.onSuccess(function(values, followUpUrl) {
      form.getFormElem().hide();
      document.getElementById('confirmform').style.visibility = 'visible';
      return false;
    });
  });