+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Forms Vallidation Scrolls Up

Forms Vallidation Scrolls Up

4 posts, 0 answered
  1. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    05 Aug 2013
    Link to this post
    Hi Team Telerik,

    We have a form located at the bottom of the page. There are validations for few fields. If those validations are not met, the validation need to fire. On button click, the validations fire correctly, but the page scrolls to the top of the page. By this, the user again has to scroll at the bottom, to reach the form and check the validation errors.

    Please let us know how we can resolve this?

    Regards,
    Siddesh Kapadi
  2. Stanislav
    Stanislav avatar
    19 posts
    Registered:
    26 Oct 2016
    05 Aug 2013
    Link to this post
    Hello Siddesh,

    Have you created the form with the embedded Sitefinity form builder, or is this a custom form that you've developed from scratch? Can you also tell me a little bit more about you project?

    Regards,
    Stanislav
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    05 Aug 2013 in reply to Stanislav
    Link to this post
    Hi Stanislav,

    We have created this by adding a new project FormsNotification, that allows us to handle submit events of the forms. We have to capture few data on submit of each form for our internal tracking purpose.

    I have my manager's account as well, through which I can add a ticket and we give you the URLs as well.

    In case of anything, please let me know. 

    Regards,
    Siddesh Kapadi
  4. Stanislav
    Stanislav avatar
    19 posts
    Registered:
    26 Oct 2016
    06 Aug 2013
    Link to this post
    Hi,

    Try adding this to the OnClientClick event of the input button.
    onClientClick="window.scrollTo = function(x,y) { return true; };"


    Regards,
    Stanislav
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered