SOLVED

Is there a workaround to have multiple Marketo forms on the same page?

Go to solution
dkonig
Level 3

Very simple. I need to have the ability to add various Marketo forms on the same page. Is there a way to do this?

2 ACCEPTED SOLUTIONS
SanfordWhiteman
Level 10 - Community Moderator
SanfordWhiteman
Level 10 - Community Moderator

Hmmm. That makes sense. Is there a way to fire separate dataLayer push events for each form then?

Yes, you can check the form ID in the callback:

MktoForms2.whenReady(function(mktoForm){
  let formId = mktoForm.getId();

  switch(formId){
  case 1234:
     // do something
     break;
  case 6789:
     // do something else
     break;
  }
});

View solution in original post

11 REPLIES 11