We're using the Marketo-generated embed code and pulling the lpID from the POST array on submit. In the 1.0 embed instructions, you just set its value to -1:
https://community.marketo.com/MarketoResource?id=kA650000000GvdjCAC
However, since the 2.0 version is built from a JSON object that is missing the lpID field, this presents a problem. I've tried the following to no avail:
<form id="mktoForm_xxxx" name="mktoForm_xxxxx"></form><script type="text/javascript">
MktoForms2.loadForm("//app-ab02.marketo.com", "xxx-xxx-xxx", xxxx, function(form){
$('form').append('<input type="hidden" name="lpId" value="-1" />');
});
When this is submitted, lpID is missing from the post:
When the same form is added to a Marketo LP and submitted, lpId is present:
Any idea how we can get that value into the post?
Solved! Go to Solution.