Fighting through the limitations of the Marketo form builder, I was thrilled to find this:
http://developers.marketo.com/blog/make-a-marketo-form-submission-in-the-background/
Simple, elegant, and it works without doing up another half a website of inconsistent CSS to cover every single form.
SOAP and REST APIs work too, but require lots more code too. The Munchkin API works too, but has virtually no documented features - associateLead adds someone to the system + nothing useful at all.
Then I realized I want multiple forms on a page. That doesn't work because it assumes the wrong form.
As I look at this line, I realize there has to be a way to reference specific forms, instead of just the generic catch-all:
var myForm = MktoForms2.allForms()[0];
How would somebody reference individual forms using this method?
Solved! Go to Solution.
Question should actually be in Products. "Community" in this case means the Marketo Nation website, and yes it is confusing.
Anyway:
MktoForms2.getForm(12345)
(I wouldn't say SOAP or REST "work" since they provide an easy DoS attack against not only forms, but all your integrations.)