Thanks so much Josh, that was awesome.

Man, they really should make it easier to add your own JS to CFFORMS. That's a 
rough thing to dig into.


  Yeah, it's a bit of a PITA but here's the scoop:

  CFFORM creates a function called _CF_check(yourformname), so if your form 
  name is "myform" the function is called _CF_checkmyform.

  Your additional validation js will need to look something like this:

  function addtl_validate() {
      // do your validation check here

      doCFvalidate = _CF_checkmyform(document.myform); // this runs the CFForm 
  validation

      if(doCFvalidate) { // passed the CFForm validation, so submit
      document.myform.submit();
      }
      else { // failed cfform validation
      return false;
      }
  }

  -- Josh 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276829
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to