AnsweredAssumed Answered

Is it possible to POST form submission to Marketo endpoint directly from HTML form without loading Marketo's forms2.min.js?

Question asked by Doug Flowers on May 29, 2019
Latest reply on Jun 5, 2019 by Doug Flowers

I have seen a few old threads suggesting this endpoint still exists but the only method of lead creation that Marketo seems to support in the docs is using the javascript library.  We have a version of that working if we have to, but we are hoping that it is still possible to simply post directly to a Marketo endpoint from the HTML form without loading Marketo's javascript library. Does such an endpoint still exist?


An older thread led me to believe that a path like: https://{our-instance}{our-form-id}&munchkinId={our-munchkin-id}  would be the endpoint we are looking for, but when we try to post a form submission to this endpoint from a form on our site, the request fails and we get this error in console:


"Mixed Content: The page was loaded over HTTPS, but requested an insecure stylesheet ''. This request has been blocked; the content must be served over HTTPS."


That leads me to believe we are either hitting the wrong endpoint or not properly authenticated to make this request. But is there a way to do so that doesn't involve loading the javascript? For the record as far as the post-submission redirect page goes, we are using our own hosted on our site and it does not use this font. 


Thanks in advance to any insight!