SOLVED

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

Subscribe
Go to solution
Anonymous
Not applicable

I've created a compulsory checkbox in my form with a custom validation message, however the field displays no validation message when I fail to enter a value.

Screen Shot 2017-11-07 at 16.38.28.png

If I subsequently click and un-click the checkbox the message does appear. But nothing if the field is simply left blank from the start.

Can anyone suggest a solution to this issue?

Screen Shot 2017-11-07 at 16.55.10.png Screen Shot 2017-11-07 at 16.56.12.png

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator
17 REPLIES 17
Gerard_Donnell4
Level 10

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

SanfordWhiteman
Level 10 - Community Moderator

Pls provide a link to your page.

Anonymous
Not applicable
SanfordWhiteman
Level 10 - Community Moderator

Yep, I blogged about this already at http://blog.teknkl.com/forms2-bug-checkbox-error-msg/

Anonymous
Not applicable

Hi Sanford,

Could you tell me where can access the forms code to update it as per your blog? I'm struggling to find it.

Anonymous
Not applicable

Same issue for me as well with the validation. I was wondering where the js file is so we can put in the edit.

SanfordWhiteman
Level 10 - Community Moderator

The JS is right in the middle of my blog post.

Anonymous
Not applicable

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

SanfordWhiteman
Level 10 - Community Moderator

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

Anonymous
Not applicable

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

SanfordWhiteman
Level 10 - Community Moderator

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

Anonymous
Not applicable

Offline Streaming - Skillz

The sign up button triggers the marketo form in lightbox

Justin_Cooperm2
Level 10

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

SanfordWhiteman
Level 10 - Community Moderator

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.

Dan_Stevens_
Level 10 - Champion Alumni

Is Marketo aware of this bug and, if so, an ETA when this will be fixed?  I didn't even realize it was broken (can't believe I missed this blog post back in September, Sandy!).  It's great that you've provided a custom fix, but this is something that just should work as expected.

Justin Cooperman

Justin_Cooperm2
Level 10

Yeah, I know about it. We have a bug open on it, just low pri.

Thanks,

Justin

Anonymous
Not applicable

Thanks!