Embedded form not displaying on site | Community
Skip to main content
August 24, 2016
Question

Embedded form not displaying on site

  • August 24, 2016
  • 1 reply
  • 2314 views

Has anybody ran into an issue where, after editing the standard embed code to include an onSuccess push of an event to Google, the form disappears? Below is the updated embed code I was trying to use. I'm not a develop by any means, but it seems to match the syntax I've seen in other discussions in the community. Thanks for looking!

<script src="//app-sj04.marketo.com/js/forms2/js/forms2.min.js"></script>

<formid="mktoForm_XXX"></form>

<script>

MktoForms2.loadForm(("//app-sj04.marketo.com", "XXX-XXX-XXX", XXXX, function(form){

  form.onSuccess(values, followUpURL){

    dataLayer.push({event: 'EVENT NAME'});

  return true;

  });

});

</script>

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
August 24, 2016

Please post a link to your actual page so I can see the console errors.

August 24, 2016

Thanks Sanford.

Here you go: Axiom Software

I see from the Console that there is this error:

Uncaught SyntaxError: Unexpected token {

SanfordWhiteman
Level 10
August 24, 2016

form.onSuccess(function(values,followUpURL){

not

form.onSuccess(values,followUpURL){