Thx Dan,
I still have a error in the code on the "MktoForms2.whenReady( function(form)" line : Uncaught ReferenceError : MktoForms2 is not defined.
I m using a guide LP. The page is here : inficiences
Thx for any help 🙂
-Greg
Now that I look more closely at our pages, we're getting the same error. This is the standard code that both Sanford Whiteman and Kenny Elkington have shared.
The code that calls MktoForms2 methods must appear after the forms2.js script is loaded.
So this can't be part of landing page template and instead needs to be manually added to any page that uses a form?
...and if that's the case, how do you force it to appear after the forms2.js script is loaded when we can't alter the placement of those scripts (HTML snippet)?
<script>
$(function() {
MktoForms2.whenReady(function(form) {
form.addHiddenFields({
"_mkt_trk": ""
});
form.onSubmit(function(form) {
form.vals({
"_mkt_trk": ""
});
})
})
});
</script>
I hate jQuery but since it's already loaded, that's the easiest way to wrap it up.
Does this LP actually have a form on it? Can you post the URL?
Hi Sanford Whiteman,
The error is gone, thx
But the page is still recognizing me, displaying my lead id (I use a token). The form is empty because I set the fields to not auto fill.
-Greg
The URL is here : inficiences Untraced Page
-Greg