Alternate method to load forms on 3rd party pages? | Community
Skip to main content
January 21, 2016
Question

Alternate method to load forms on 3rd party pages?

  • January 21, 2016
  • 3 replies
  • 2683 views

Hey there,

Our developers were wondering if there is any alternative to the javascript implementation for loading Marketo forms on 3rd party pages. What they'd love is something server-side.

Is anything like this available (or planned)?

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Grégoire_Miche2
Level 10
January 21, 2016

Hi Kelvin,

No there is none per se.

But you could use your own form development system and use Marketo server side API to pass the lead info to Marketo. See Marketo REST APIs: Lead, List, Activity, Campaign Objects » Marketo Developers

-Greg

SanfordWhiteman
Level 10
January 21, 2016

What do they mean by "server-side"?  The resulting form object always uses JavaScript, so you are not moving the form from client to server.  You can write shortcode-type abstractions to plug the forms2.js library and the MktoForms2::loadForm call into the final HTML, but you're still rendering the form on the client (which is what you should be trying to do).

What exactly are they trying to achieve?

January 22, 2016

You just post forms directly to <your-marketo-domain>/index.php/leadCapture/save2

Just ensure you have all of the necessary hidden fields:

_mkto_trk

formVid

formid

lpId

subId

munchkinId

lpurl

cr

kw

q

_mktoReferrer

Along with any other fields you want and it'll just work.

SanfordWhiteman
Level 10
January 22, 2016
Along with any other fields you want and it'll just work.

Unless you actually have a large, successful campaign, in which case it'll fail because of rate limiting.

This is why client-side forms are what everybody should be aiming for.  Server-side form posts are now deprecated in favor of background client posts using the Forms 2.0 API.

January 23, 2016

Both the Forms 2.0 and Landing pages built within Marketo POST their form data to /index.php/leadCapture/save2