Title: Auto scroll &#8216;__return_false&#8217; , doesn&#8217;t work.
Last modified: April 10, 2018

---

# Auto scroll ‘__return_false’ , doesn’t work.

 *  Resolved [defenceb1t](https://wordpress.org/support/users/defenceb1t/)
 * (@defenceb1t)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/auto-scroll-__return_false-doesnt-work/)
 * Hi,
 * I have a problem regarding Mailchimp (v 4.2) and WordPress (v 4.9.5) – both latest
   versions.
 * When I insert the email on the input box and click on submit button, the page
   reloads and scrolls down so I can’t see the feedback message.
 * I browsed for a solution and found the following:
 * add_filter( ‘mc4wp_form_auto_scroll’, ‘__return_false’ );
 * I pasted it into the child theme’s functions.php, but it still doesn’t work. 
   In this case, upon clicking submit, the page instead reloads to the top.
 * Can you please assist?
 * Thanks
 * PS.: Example of the desired behaviour (focus) [https://imgur.com/zipAXUw.png](https://imgur.com/zipAXUw.png)
    -  This topic was modified 8 years, 1 month ago by [defenceb1t](https://wordpress.org/support/users/defenceb1t/).
    -  This topic was modified 8 years, 1 month ago by [defenceb1t](https://wordpress.org/support/users/defenceb1t/).
    -  This topic was modified 8 years, 1 month ago by [defenceb1t](https://wordpress.org/support/users/defenceb1t/).
    -  This topic was modified 8 years, 1 month ago by [defenceb1t](https://wordpress.org/support/users/defenceb1t/).
    -  This topic was modified 8 years, 1 month ago by [defenceb1t](https://wordpress.org/support/users/defenceb1t/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fauto-scroll-__return_false-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/auto-scroll-__return_false-doesnt-work/#post-10182479)
 * Hello,
 * The code you added disables auto scrolling. So when the page reloads it will 
   reload on top. I would suggest removing the code and adjust the CSS in your theme
   to get the scroll position correct. This might be difficult but is the only way.
 * You can also integrate our plugin with “Contact Form 7” which has ajax form submission
   so there is no scrolling or page reload required. Our premium version also offers
   AJAX form submission.

Viewing 1 replies (of 1 total)

The topic ‘Auto scroll ‘__return_false’ , doesn’t work.’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

## Tags

 * [add filter](https://wordpress.org/support/topic-tag/add-filter/)
 * [auto scroll](https://wordpress.org/support/topic-tag/auto-scroll/)

 * 1 reply
 * 2 participants
 * Last reply from: [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/auto-scroll-__return_false-doesnt-work/#post-10182479)
 * Status: resolved