MS Clientside Validation and focussing on the first failed fieldhttp://forums.asp.net/t/411749.aspx/1?MS+Clientside+Validation+and+focussing+on+the+first+failed+fieldTue, 09 Dec 2003 21:23:47 -0500411749411749http://forums.asp.net/p/411749/411749.aspx/1?MS+Clientside+Validation+and+focussing+on+the+first+failed+fieldMS Clientside Validation and focussing on the first failed field Does anyone have a method - that they are willing to share for expanding the normal Microsoft clientside validation to automagically set the focus - upon the validation firing to the first field that failed the validation - I have a method, which involves intercepting the page_validate function in Javascript, but it is less than optimal, if changes the behavior of the main function so that other controls that depend on this, then fail, so I am discarding this as an option Anyone else got any solutions DavidM 2003-12-06T09:27:15-05:00411805http://forums.asp.net/p/411749/411805.aspx/1?Re+MS+Clientside+Validation+and+focussing+on+the+first+failed+fieldRe: MS Clientside Validation and focussing on the first failed field David - I went towards the ValidationSummary method. I did this because I thought automatic focus would confuse the user (IMHO). I have some large dynamic forms that must be scrolled, so I dynamically inject an anchor tag next to each field name. Then I run dynamic validators against whichever is required. If any fail they are displayed at the top of the page in a ValidationSummary, with hyperlinks to the fields that have failed. I'd be interested to hear if anyone has a robust client-side approach. Steve 2003-12-06T12:01:47-05:00413166http://forums.asp.net/p/411749/413166.aspx/1?Re+MS+Clientside+Validation+and+focussing+on+the+first+failed+fieldRe: MS Clientside Validation and focussing on the first failed field Hi David, It's been a while since we chatted. Have you checked out my replacement for Microsoft's validation framework, &quot;Professional Validation And More&quot;? <a href="http://www.peterblum.com/vam/home.aspx">http://www.peterblum.com/vam/home.aspx</a>. Its designed to greatly expand the UI choices you have for validation. Along with setting the focus to the first field failed, it can: * use different error message formats like images that popup tooltips or alerts * put the focus on the field immediate after the user changes * blink the error message * The ValidationSummary can include hyperlinks on each error message listed to put the focus to the field. * Change the color of the field with the error 2003-12-08T20:12:00-05:00414313http://forums.asp.net/p/411749/414313.aspx/1?Re+MS+Clientside+Validation+and+focussing+on+the+first+failed+fieldRe: MS Clientside Validation and focussing on the first failed field Hey Peter - yeah it has been a long time - via series of inherited MS controls, we can do all the features that you mention in your list - apart from setting the first failed control focus - your suite looks mighty impressive and I may have to take a longer look when I get some time (training for MCSD at the moment (MCAD by the end of this week) hope to get that finished by mid Jan) DavidM 2003-12-09T21:23:47-05:00