Skip to main content
November 20, 2013
Question

fix form logic - says checkbox field "mandatory" but unchecked accepted as valid

  • November 20, 2013
  • 4 replies
  • 1079 views
Anyone else found a quick fix for this? I found a way to add custom HTML to landing page itself to make a check box accepting license term mandatory - but then there are two "submit buttons' on LP and that is unworkable. (Submit for form box and submit button for license terms.)

Suggestions?

I must be doing something wrong because editting the form fields individually we set the parameters on checkbox to prefilled and to "mandatory" but clearly it is not mandatory as form still accepted and no error message presented if you uncheck the box.

Pretty sure this is user error on my part but curious if anyone has advice. Sincerely, Kristin
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

November 20, 2013
This requires some custom JS coding.  You'll want to go ahead and use this article to help you: http://community.marketo.com/MarketoResource?id=kA650000000Gtt6CAC
 
 
November 20, 2013
Hey - thanks - I just did that (dragged the HTML object on LP and cut pasted in the check box script from the site you provided - and changed the name of the field in true/false lines in the code) - went to preview it and still let me submit form (from preview pane) as if there was no requirement to check the box. Clearly I must have missed a small tweak to code somewhere - or else I cant test the form in preview and only can test draft file by opening new window maybe with the LP url?  
This is so helpful what you sent me I hate to be the dummy who needs just a little more help tweaking the file - but I am that dummy and thanks in advance for help.
November 20, 2013
It would definitely be nice to:

1. Have you test it on the actual URL (after you approve it)
2. Provide the snippet of your coding so we can see what changed (highlight what you changed if possible)


November 20, 2013
I got it working now.  Just needed to try it live - a little risky - but what the heck - as well as of course clear all Chrome cache, forms, browsing data etc in case the page reload didnt actually grab the new file.  But it is working now for both reg pages and am deeply grateful for the help you offered and so quickly too!!