Marketo Form on a Different Domain | Community
Skip to main content
March 22, 2018
Question

Marketo Form on a Different Domain

  • March 22, 2018
  • 1 reply
  • 2065 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
March 22, 2018

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

March 22, 2018

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

SanfordWhiteman
Level 10
March 22, 2018

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;
    });
  });