# Scroll to an element in a popup

**URL:** <https://forum.bubble.io/t/scroll-to-an-element-in-a-popup/167707>\
**Category:** Need help\
**Created:** [September 3, 2021, 10:30am UTC](https://forum.bubble.io/t/scroll-to-an-element-in-a-popup/167707 "2021-09-03T10:30:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohid](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@mohid](https://forum.bubble.io/u/mohid)\
**Post date:** [September 3, 2021, 10:30am UTC](https://forum.bubble.io/t/scroll-to-an-element-in-a-popup/167707/1 "2021-09-03T10:30:57Z")

</div>

Hi. I have added a popup in my app and I have made it scrollable by using custom css, (overflow: scroll, height: some height in px;)

My popup has an input field at the end of the popup but when I open the popup it leaves all the elements in the start of the popup and scrolls to the input element. I tried using the scroll to option in the workflow which says that when a popup is opened then scroll to the top heading of the popup but that is not working. Any idea about where am i going wrong or how to solve this issue?

---

<div class="post-metadata">

**Author:** ![Andrew.Vernon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrew.vernon/32/80954_2.png) [@Andrew.Vernon](https://forum.bubble.io/u/Andrew.Vernon)\
**Post date:** [September 4, 2021, 4:36pm UTC](https://forum.bubble.io/t/scroll-to-an-element-in-a-popup/167707/2 "2021-09-04T16:36:44Z")

</div>

Hey @mohid👋

Thanks for the post! And, interesting problem. Without seeing it, it can be hard to know exactly what’s going on. But, it almost sounds like the input is being focussed automatically when the popup opens and so Bubble is scrolling to it. There’s a workaround for this shared here: [Date Picker is Focused When Popup is Shown](http://forum.bubble.io/t/date-picker-is-focused-when-popup-is-shown/146230)

And of course, if you continue to have questions, or want to discuss further, don’t hesitate to email us directly at [Support@Bubble.io](mailto:Support@Bubble.io)

---

<div class="post-metadata">

**Author:** ![mohid](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@mohid](https://forum.bubble.io/u/mohid)\
**Post date:** [September 6, 2021, 9:56am UTC](https://forum.bubble.io/t/scroll-to-an-element-in-a-popup/167707/3 "2021-09-06T09:56:58Z")

</div>

Hey @Andrew.Vernon

Thank you for the response. And I solved it exactly the same way as it is told in the link that you shared but I do want to know how to change the focus of the element when a popup is opened. If you can help me in that. Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![Andrew.Vernon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrew.vernon/32/80954_2.png) [@Andrew.Vernon](https://forum.bubble.io/u/Andrew.Vernon)\
**Post date:** [September 6, 2021, 2:48pm UTC](https://forum.bubble.io/t/scroll-to-an-element-in-a-popup/167707/4 "2021-09-06T14:48:12Z")

</div>

Glad to hear that helped! And sure thing… There’s actually an action for that as well. In your workflow editor, you’ll search for ‘focus’ and should find an action where all you do is specify which input you want to set focus to.

Give it a try and feel free to email us with any questions → [Support@Bubble.io](mailto:Support@Bubble.io)

---

<div class="post-metadata">

**Author:** ![mohid](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@mohid](https://forum.bubble.io/u/mohid)\
**Post date:** [September 13, 2021, 2:14pm UTC](https://forum.bubble.io/t/scroll-to-an-element-in-a-popup/167707/5 "2021-09-13T14:14:36Z")

</div>

@Andrew.Vernon Thanks 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [November 12, 2021, 10:31am UTC](https://forum.bubble.io/t/scroll-to-an-element-in-a-popup/167707/6 "2021-11-12T10:31:08Z")

</div>

Closed on November 12, 2021, 10:31am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
