# Scrolling Form

**URL:** <https://community.hubspot.com/t/scrolling-form/20479>\
**Category:** CMS Development\
**Tags:** javascript\
**Created:** [April 29, 2020, 6:52pm UTC](https://community.hubspot.com/t/scrolling-form/20479 "2020-04-29T18:52:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![allisonnance](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/allisonnance/32/104913_2.png) [@allisonnance](https://community.hubspot.com/u/allisonnance)\
**Post date:** [April 29, 2020, 6:52pm UTC](https://community.hubspot.com/t/scrolling-form/20479/1 "2020-04-29T18:52:00Z")

</div>

I added the script in this post to my landing page but it isn’t working for me. I contacted HS support and they said the js was firing with no errors. Can anybody help and see if it’s something I did wrong? The goal is to have the form scroll with you on desktop. I’ve done something similar in the past with a fixed position in the css on a desktop only module but with this longer form, I’m afraid some smaller screens might cut off the bottom of the form.

Script

[https://community.hubspot.com/t5/CMS-Development/From-to-stay-put-when-scrolling/td-p/207099](https://community.hubspot.com/t5/CMS-Development/From-to-stay-put-when-scrolling/td-p/207099)

My landing page

[http://info.randallreilly.com/truck-utilization-poll-sms-consent-cab-2020](http://info.randallreilly.com/truck-utilization-poll-sms-consent-cab-2020)

My footer HTML

 ![Screen Shot 2020-04-29 at 1.50.54 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/10505848b0febd37517a0a46d99a5d0c0cdcab9d.png)

---

<div class="post-metadata">

**Author:** ![mike-ward](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike-ward/32/26595_2.png) [@mike-ward](https://community.hubspot.com/u/mike-ward)\
**Post date:** [April 30, 2020, 10:41am UTC](https://community.hubspot.com/t/scrolling-form/20479/2 "2020-04-30T10:41:17Z")

</div>

Hi @allisonnance ,

There’s a JS console error when the page loads:

`Uncaught TypeError: $(...).stick_in_parent is not a function`

Probably the library isn’t loading in time for the call.

To be honest, I’d do this with CSS unless you must absolutely have it be sticky on Internet Explorer 11 (see the [caniuse.com entry for position:sticky](https://caniuse.com/#feat=css-sticky)), because the CSS will work for basically everything else.

The CSS below should do it for this page, although I would recommend that you add a class to that second column in the template instead and target it using your new class name (e.g. add the class **sticky-form** and then replace the first line below with **.sticky-form** )

```auto
.span6.widget-span.widget-type-form {
 position: -webkit-sticky; /*Safari*/
 position: sticky;
 top: 0;
}

```

Hope that helps. Let me know how you get on!

Cheers,

Mike

---  
_Did I answer your question? If your question is answered, please mark it as a solution. If you need more help, hit that big orange ‘Reply’ button!_

---

<div class="post-metadata">

**Author:** ![ashleyhayden8](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@ashleyhayden8](https://community.hubspot.com/u/ashleyhayden8)\
**Post date:** [February 8, 2024, 4:16am UTC](https://community.hubspot.com/t/scrolling-form/20479/3 "2024-02-08T04:16:31Z")

</div>

I am trying to create a scroll box from top to bottom scroll option within a quote can you please help me?
