Question
How to get a lead id on sccess event
Get lead id on success event of marketo form
<script>
MktoForms2.loadForm("//app-sj07.marketo.com", "11-11-11", 12, function(form) {
// Add an onSubmit handler
form.onSuccess(function(){
// Get the form field values
var vals = form.vals();
alert("Submitted values: " + JSON.stringify(vals));
});
});
</script>