# Page Scrolling

**URL:** <https://community.hubspot.com/t/page-scrolling/74650>\
**Category:** CMS Development\
**Tags:** forms\
**Created:** [February 7, 2023, 3:06pm UTC](https://community.hubspot.com/t/page-scrolling/74650 "2023-02-07T15:06:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Woodsy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/woodsy/32/63860_2.png) [@Woodsy](https://community.hubspot.com/u/Woodsy)\
**Post date:** [February 7, 2023, 3:06pm UTC](https://community.hubspot.com/t/page-scrolling/74650/1 "2023-02-07T15:06:31Z")

</div>

Hi

I am trying to stop the page scrolling when a keyword is added in the search or a topic selected in the dropdown. Currently the page scrolls back to the top.  
This is the search bar code:

```lia-code-sample
<form action="{{ 'https://www.360insights.com/blog' }}" id="form1">
<label for="term">Search Blog</label>
 <div class="hs-search-field__input-wrapper">
 <input type="text" class="hs-search-field__input" name="term" autocomplete="off" aria-label="Field Label | Search" placeholder="Search Blog">
<input type="hidden" name="type" value="BLOG_POST">
<input type="hidden" name="type" value="LISTING_PAGE">
 <input type="hidden" name="limit" value="9">
<input type="hidden" name="is_search_results" value="true">
 <button type="submit" form="form1" value="Submit" class="hs-button primary"><i class="fa fa-search"></i></button>
 </div>

</form>

```

This is the code used for the topic dropdown:

```lia-code-sample
<div class="blog-listing-bar__topics">
<form>
<label for="topics">{% text "browse_by_topic_title" label="Browse by Topic Title", value="Browse by topic" %}</label>
<select name="topics" id="topics" class="mb-none">
{% set topics = blog_topics('default', 250) %}
<option value="{{ group.absolute_url }}">All Topics</option>
{% for topic in topics %}
<option value="{{ group.absolute_url }}/tag/{{topic.slug}}" {% if topic.slug == tag %}selected{% endif %}>{{ topic }}</option>
{% endfor %}
</select>
</form>
</div>

```

An example of the scrolling can be viewed here: [Channel Marketing Blog | 360insights](https://www.360insights.com/blog)

Thank you in advance for any help.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [February 9, 2023, 12:26am UTC](https://community.hubspot.com/t/page-scrolling/74650/2 "2023-02-09T00:26:08Z")

</div>

Hi, @Woodsy 👋 Thanks for reaching out. Do you have a live example of this behaviour in action? The community may not be able to offer help without seeing it happen. Also, is this form on a HubSpot hosted page?

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![Woodsy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/woodsy/32/63860_2.png) [@Woodsy](https://community.hubspot.com/u/Woodsy)\
**Post date:** [February 9, 2023, 1:59pm UTC](https://community.hubspot.com/t/page-scrolling/74650/3 "2023-02-09T13:59:18Z")

</div>

Thanks, I have added a link in my post that shows how the page currently scrolls back to the top when a keyword is added or a topic selected.
