Validation Summary at Top of Form?
I see, in the rendered html, a 'sfErrorSummary' div but it is always empty, even when there are validation errors on the form. Is this a work in progress, or is there a way to enable this validation summary to show at the top of the form?
Hi Chris,
You could do this with a custom java script which can be included on the page containing the form. After you drop the form widget please add a JavaScriptWidget. I'm attaching a simple javascript file that will override the current validation logic and add a validation summary on the top.
In the JavaScript widget set a link to the JS file (should be extracted somewhere in your web site) and make sure that it is included before the "closing body end tag". Feel free to modify the script to place the summary container where you want.
Regards,
Pavel
the Telerik team