Sounds like you are using CFForm. I haven't used CFForm for years, but I seem to recall a "submitonce" validation parameter when using <cfinput type='submit'.... />. Maybe check into that.
HTH. Steve On Mon, Nov 7, 2011 at 1:36 PM, John Pullam <[email protected]>wrote: > > I can disable a submit button using javascript > (onclick="this.disabled=true;return true") but this occurs before the > ColdFusion input field validation. > > The problem is that if the form does not pass validation, you cannot > resubmit it after the errors are corrected because the submit button is > disabled. > > Can anyone suggest a technique for disabling the button after the form has > passed validation? (The server code that runs after gets into trouble when > impatient users do multiple clicks.) > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:348504 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

