Try Now
More in this section

Forums / Bugs & Issues / Validation Summary at Top of Form?

Validation Summary at Top of Form?

2 posts, 0 answered
  1. Chris
    Chris avatar
    16 posts
    21 Jan 2011
    18 Mar 2011
    Link to this post
    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?
  2. Pavel Iliev
    Pavel Iliev avatar
    140 posts
    18 Jul 2016
    28 Mar 2011
    Link to this post
    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.

    the Telerik team
2 posts, 0 answered