scroll to bottom after subscribe form postback

Posted by Community Admin on 04-Aug-2018 14:15

scroll to bottom after subscribe form postback

All Replies

Posted by Community Admin on 20-May-2015 00:00

Hi,

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?

 Thanks,

Posted by Community Admin on 25-May-2015 00:00

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)
,500);

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.

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

This thread is closed