Re: Form Validation on Non-Marketo Landing Page

Anonymous
Not applicable

Form Validation on Non-Marketo Landing Page

Hi,

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!

Shane
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: Form Validation on Non-Marketo Landing Page

You need to place your own javascript on the page to validate the form. http://www.w3schools.com/js/js_form_validation.asp

- Jeff
Anonymous
Not applicable

Re: Form Validation on Non-Marketo Landing Page

Shane,

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!

https://community.marketo.com/MarketoResource?id=kA650000000GvdjCAC

Thank you for your time!

Jesse
Technical Support Engineer - Premier Support Team
Giancarlo_Trent
Level 1

Re: Form Validation on Non-Marketo Landing Page

Is there something like this: https://community.marketo.com/MarketoResource?id=kA650000000GvdjCAC
But for Forms 2.0?