Try Now
More in this section

Forums / Developing with Sitefinity / scroll to bottom after subscribe form postback

scroll to bottom after subscribe form postback

2 posts, 0 answered
  1. Dimas
    Dimas avatar
    3 posts
    05 Jan 2015
    20 May 2015
    Link to this post


    So I have the subscribe form widget at the footer section.  When it postbacks I want it to scroll to the position of the subscribe form so the user can see the message instantly without having to scroll or better yet show a popup after postback.  Is there a way of doing this?


  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    28 Oct 2016
    25 May 2015
    Link to this post
    Hello Dimas,

    Can you please add the following javascript to your page and check the behavior again:

    $('html, body').animate({
        scrollTop: ($('.sfError').first().offset().top)

    You can use for example the Javascript widget on a page and use the above javascript. I have just tested this on my side and when the registration form is not valid it scrolls to the position of the first error message.

    You may also take a look at the following forum thread where a similar matter has been discussed and also try the suggestion there.

    Sabrie Nedzhip
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered