I use Marketo forms on non-Marketo pages (such as our home page). For several reasons, we can't use the embed code, but instead copy and paste the non-script field markup, and everything works. But now I'm trying to figure out how to get the forms to validate and not send blank leads to Marketo.
Can anyone help me figure out how to do this? Thanks!
There are additional ways that you might be able to accomplish this, but I'd have to know if you're cutting and pasting code from a Forms 1.0 or Forms 2.0 form. If it's a Forms 1.0 you can follow the walkthrough on the Marketo Community Article I've placed below. The mktFormSupport.js can be used with Forms 1.0 forms to still keep the standard Marketo field validation. Forms 2.0 forms are a different beast that's a bit more complicated to implement, so we can cross that brige if we need to!