AdobeStock_455007340

Extending Validation

and can greatly simplify implementing client side form field validation by generating frequently used JavaScript validation code for you. But what if you want to extend the built in validation to perform validation not supported by the generated code? You can do this using the tag’s ONSUBMIT attribute which lets you specify your own JavaScript function to be executed when the SUBMIT button is pressed. This way you can trap the form submission and supplement any needed code. Of course you’ll need to write your own JavaScript to do this, but if you need to do so, this is the easiest way to get there. (Applies to: ColdFusion 3 (or later))

Leave a Reply