Hi Richard, I've figured out how to do custom validation before cfform validation. I originally tried using the onSubmit attribute of the cfform tag but I couldn't get that to work. Note that this does not solve your original problem of how to figure out which button is clicked when it is input type="button". I think you'll still need to use a type="image" or a link to send that information. You could set hidden variables, however unless you set different forms for each button, all hidden variables will be sent so there's still no way for the server to tell which was clicked.
I got some helpful information from cfquickdocs, http://www.cfquickdocs.com, tag cfform - there are some comments at the bottom that discuss this issue. If your cfform name attribute is "MyForm": function myCustomValidation () { // do your custom validation here, return false if it fails dosub = _CF_checkMyForm(document.MyForm); // this then runs the CFForm validation - will pop alert if any validation fails if (dosub) { // returned true, so no cfform validation errors, ok to submit form document.MyForm.submit(); } else { // returned false, there were cfform validation errors, don't submit form return false; } } ----- Original Message ----- From: "Richard White" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Thursday, November 02, 2006 12:00 PM Subject: Re: cfform tasks before submit > thanks for your replies, i would appreciate it josh if you do have some > links that i can read thanks > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258923 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

