# Portal Scrolling on parent record change

**URL:** <https://the.fmsoup.org/t/portal-scrolling-on-parent-record-change/2067>\
**Category:** Questions\
**Tags:** community, layout, portals\
**Created:** [April 29, 2021, 1:09pm UTC](https://the.fmsoup.org/t/portal-scrolling-on-parent-record-change/2067 "2021-04-29T13:09:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpking](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/cpking/32/1179_2.png) [@cpking](https://the.fmsoup.org/u/cpking)\
**Post date:** [April 29, 2021, 1:09pm UTC](https://the.fmsoup.org/t/portal-scrolling-on-parent-record-change/2067/1 "2021-04-29T13:09:34Z")

</div>

On my layout I have a portal that sometimes has more records than will conveniently fit on the screen. Each time the parent record is browsed, I'd like the portal to reset and display the first row first. For example, when changing from Parent record 1 with 10 portal rows to Parent record 2 with 25 rows and scrolling to edit row 20, then changing back and forth between parent records, Parent record 2 stays where it was when I was editing it. I'd like it to "refresh" and start at the top.

Does this make sense? Is there an easy script step to achieve this?

---

<div class="post-metadata">

**Author:** ![cpking](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/cpking/32/1179_2.png) [@cpking](https://the.fmsoup.org/u/cpking)\
**Post date:** [April 29, 2021, 1:13pm UTC](https://the.fmsoup.org/t/portal-scrolling-on-parent-record-change/2067/2 "2021-04-29T13:13:04Z")

</div>

Nevermind - found Scroll Window [Home] as a layout script trigger works.

---

<div class="post-metadata">

**Author:** ![cheesus](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/cheesus/32/182_2.png) [@cheesus](https://the.fmsoup.org/u/cheesus)\
**Post date:** [April 30, 2021, 8:52am UTC](https://the.fmsoup.org/t/portal-scrolling-on-parent-record-change/2067/3 "2021-04-30T08:52:52Z")

</div>

There's no need for a trigger:  
In the settings for every portal there is a checkbox to reset the portal's scrolling when changing the record. Unfortunately I develop in German, so a screenshot might not be helpful. But I'm confident you will find it.

---

<div class="post-metadata">

**Author:** ![cpking](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/cpking/32/1179_2.png) [@cpking](https://the.fmsoup.org/u/cpking)\
**Post date:** [April 30, 2021, 9:39am UTC](https://the.fmsoup.org/t/portal-scrolling-on-parent-record-change/2067/4 "2021-04-30T09:39:06Z")

</div>

Yes, I tried that, but it didn't work. Odd.

---

<div class="post-metadata">

**Author:** ![Kirk](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/kirk/32/2197_2.png) [@Kirk](https://the.fmsoup.org/u/Kirk)\
**Post date:** [February 5, 2022, 10:45pm UTC](https://the.fmsoup.org/t/portal-scrolling-on-parent-record-change/2067/5 "2022-02-05T22:45:08Z")

</div>

A GTO (portal as a named object) and a GTPR (first) can get you there as well.
