I generally try to roll my own validation and just use <form> instead. You can much nicer validation. However with that being said I believe whatever you define in onSubmit="return bla" will only fire if the cf validation passes.
Ray explains it here: http://www.coldfusionjedi.com/index.cfm/2008/1/11/Ask-a-Jedi-Mixing-cfform-validation-and-ajaxbased-functions On Tue, Feb 1, 2011 at 12:02 PM, Kelly Matthews <webd...@gmail.com> wrote: > > Sorry if this ends up being a dupe post. > > I'm working on a client site that already had a CF Form in place using > cfinput and validation via required="yes" > > We added some select boxes that are required and as most of you know CF > forms don't really validate those. So, I am using jquery to validate the > select boxes when the form is submitted. > > The problem I am running into is this: The jquery portion works AND the CF > validation errors are thrown as well. But if I fill in all the selects that > are validated via jquery and do not to fill in the fields that are being > required via cfinput required="yes", the error is thrown but the form still > submits. Is this because of the jquery on submit validation? Has anyone > run into this before, is there an easy fix, outside of moving the cfinput > validation into the jquery validation? > > Kelly Matthews > Web Developer > http://www.cfwebtools.com > blog: http://kellymatthews.wordpress.com > Twitter: @webdiva > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341788 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm