Hi, I recently changed servers to a windows 2003, IIS 6 and CF MX7. Since doing this I've been having problems with a few different things, one in particular is the coldfusion form validation
I have this simple example: <html> <head> <title>Test form</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <cfform name="test"> <cfinput type="radio" name="bookingcode" value="testresult" id="bookingcode1" required="yes" message="You must select your days of attendance" checked="yes" /><label for="bookingcode1">asdf</label> <input type="submit" name="submit" value="submit"> </cfform> </body> </html> Which produces this code: <html> <head> <title>Test form</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script> <script type="text/javascript" src="/CFIDE/scripts/masks.js"></script> <script type="text/javascript"> <!-- function _CF_checktest(_CF_this) { //reset on submit _CF_error_exists = false; _CF_error_messages = new Array(); _CF_error_fields = new Object(); _CF_FirstErrorField = null; //form element bookingcode required check if( !_CF_hasValue(_CF_this['bookingcode'], "RADIO", false ) ) { _CF_onError(_CF_this, "bookingcode", _CF_this['bookingcode'].value, "You must select your days of attendance"); _CF_error_exists = true; } //display error messages and return success if( _CF_error_exists ) { if( _CF_error_messages.length > 0 ) { // show alert() message _CF_onErrorAlert(_CF_error_messages); // set focus to first form error, if the field supports js focus(). if( _CF_this[_CF_FirstErrorField].type == "text" ) { _CF_this[_CF_FirstErrorField].focus(); } } return false; }else { return true; } } //--> </script> </head> <body> <form name="test" action="/test6.cfm" method="post" onsubmit="return _CF_checktest(this)"> <input name="bookingcode" type="radio" value="testresult" checked="checked" id="bookingcode1" /><label for="bookingcode1">asdf</label> <input type="submit" name="submit" value="submit"> </form> </body> </html> However, even though the checkbox is checked, the javascript alert is set off and the form isn't submitted. Any ideas why this is happening? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269280 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4