Validation Summary at Top of Form?

Posted by Community Admin on 04-Aug-2018 21:34

Validation Summary at Top of Form?

All Replies

Posted by Community Admin on 18-Mar-2011 00:00

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?

Posted by Community Admin on 28-Mar-2011 00:00

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

This thread is closed