SOLVED

Re: Custom validation message not displaying when no entry is made on compulsory field

Go to solution
Anonymous
Not applicable

Re: Custom validation message not displaying when no entry is made on compulsory field

Do i paste the code with the form embed script? Sorry, I am very new to Marketo.

SanfordWhiteman
Level 10 - Community Moderator

Re: Custom validation message not displaying when no entry is made on compulsory field

Add a new <script> tag with the code and place it after the standard embed code.

Anonymous
Not applicable

Re: Custom validation message not displaying when no entry is made on compulsory field

Am I suppose to just copy paste the whole code? It seems to not work for me.

SanfordWhiteman
Level 10 - Community Moderator

Re: Custom validation message not displaying when no entry is made on compulsory field

You'll have to provide more detail than "not work," i.e. a link to your URL.

Anonymous
Not applicable

Re: Custom validation message not displaying when no entry is made on compulsory field

Offline Streaming - Skillz

The sign up button triggers the marketo form in lightbox

SanfordWhiteman
Level 10 - Community Moderator

Re: Custom validation message not displaying when no entry is made on compulsory field

Many syntax errors in your code. (You can see the error in your console.)

pastedImage_0.png

<script> tags only have JS code inside of them, not <p> or any other tags.

Justin_Cooperm2
Level 10

Re: Custom validation message not displaying when no entry is made on compulsory field

Hi Nicole,

If you're using our text editor, you need to put code in by clicking the HTML button. You can't just paste code into the text editor. I think that may be what you're doing.

Justin

Gerard_Donnell4
Level 10

Re: Custom validation message not displaying when no entry is made on compulsory field

Can't believe I missed this one as well. Have a few hours of fixes to do now. Thanks for the workaround Sanford.