AnsweredAssumed Answered

How to get a lead id on sccess event

Question asked by 5fc8f5cb60dbb3c97149d7b6c51315430cdbefa9 on Feb 12, 2016
Latest reply on Feb 12, 2016 by Sanford Whiteman

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>

Outcomes