SOLVED

Marketo Form

Go to solution
Highlighted
Anonymous
Not applicable

Marketo Form

Hi guys,

So I have this landing page, simple blue background, my white main content and my form in it : it's a non-responsive landing page and the editing mode is Free-form.

The form is embed to this landing page, plus we added some Javascript so we can track people's checkboxes.

Everything is working all fine for now.

nonResponsiveForm.jpg

Now, i'm trying to make this landing page responsive.

I'm working on a Marketo template that I have been using for 2 or 3 pages now, and the forms are working perfectly great in it when I use the mktoForm tag.

Editing mode : Guided Template.

Here are two screenshots of the forms, working perfectly great :

7-3-2015 9-39-55 AM.jpg7-3-2015 9-39-27 AM.jpg

But now, when I'm trying to put my first form on this template, the one I used on the Free-Form landing page, without using the mktoForm tag but using the Embed Code of my form (as I did for the Free-Form landing page so I can add my Javascript easily too with the Function(form)), the form doesn't even show up and Marketo applies everything I do as a HTML comment.

For now, it's like this :

7-3-2015 10-09-46 AM.jpg

This is what i get when I add my Embed Form + Javascript to the "Content Text" div :

7-3-2015 10-13-23 AM.jpg

This is the form I see after approval :

7-3-2015 10-15-58 AM.jpg

Clearly empty, but still we can see that the page knows there's a form, because we have my form's background-color.

Plus, even when I take off the Javascript script, so I just have my Embed Form, it's not working either.

Do I need a special tag in my template, so I can add my Embed Form/Javascript, and Marketo won't apply it as HTML comment ? Or what ?

If anybody has any solution for that, i will appreciate it

Thank you for your time,

Timothy.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Level 10 - Community Moderator

Re: Marketo Form

Thanks, Josh.  Timothy Kotzerke​ if you want to use the embed code, do this from the GLPT (template), not from the GLP (page) itself. 

The GLP UI is designed to discourage "free-form-izing" the page, limiting users to filling in static content and escaping attempts to add restricted tags.

Alternately, you can put script tags in the HEAD on a per-GLP basis, which allows some flexibility But certainly loading the core .../forms2.min.js should be done in the HEAD of the GLPT.  No reason to have that load at the page level.

View solution in original post

2 REPLIES 2
Highlighted
Level 10 - Champion Alumni

Re: Marketo Form

Is this a Marketo hosted page or one on your system?


This is really a question for Sanford Whiteman​ but I suspect a bit of troubleshooting could help.

  • If marketo hosted, then there is no reason to use the embed code or any other javascript for this.
  • Take off the embed code
  • take off your custom javascript
  • test page
  • drop in regular form however guided templates suggest
  • if that works, then try dropping in the old custom code.
  • if this BREAKS, then you need to update your code somewhere.
  • if it is fine, then it was using the embed code.


I'm sure there's more to it than that, but that's where i'd start.

Highlighted
Level 10 - Community Moderator

Re: Marketo Form

Thanks, Josh.  Timothy Kotzerke​ if you want to use the embed code, do this from the GLPT (template), not from the GLP (page) itself. 

The GLP UI is designed to discourage "free-form-izing" the page, limiting users to filling in static content and escaping attempts to add restricted tags.

Alternately, you can put script tags in the HEAD on a per-GLP basis, which allows some flexibility But certainly loading the core .../forms2.min.js should be done in the HEAD of the GLPT.  No reason to have that load at the page level.

View solution in original post