# Send user to top of screen with action

**URL:** <https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483>\
**Category:** Ask for Help\
**Created:** [December 7, 2020, 7:38am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483 "2020-12-07T07:38:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2020, 7:38am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/1 "2020-12-07T07:38:53Z")

</div>

Is anyone aware of a way to send a user back to the top of the current screen using an action?

I have a screen with a very long list of choice components in segmented mode (66 of them, to be exact), then at the end of the list is a ‘Submit’ button with a compound action attached. As part of that action sequence, I’d like to keep the user on the current screen, but send them back to the very top.

Can that be done?

I tried Link to Screen → This Item, but that reloads the screen with default component layout, which isn’t what I want.

---

<div class="post-metadata">

**Author:** ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)\
**Post date:** [December 7, 2020, 7:48am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/2 "2020-12-07T07:48:15Z")

</div>

I’m not aware of a way to do that currently @Darren_Murphy but I’d like to know myself! What does the Submit button currently do? Add a row? If so, where are the source data values coming from?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2020, 7:57am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/3 "2020-12-07T07:57:39Z")

</div>

Hey Mark…

Yeah, it adds a row. The source data comes from a series of 66 user-specific columns which are tied to all the choice components. These get written out to a new row, and then all the user-specific values are cleared. What I want to do next is send them back to the top of the screen and ask them to do it all again (because, I’m a sadist 👹) …the 2nd pass actually writes another new row with a few values changed.

---

<div class="post-metadata">

**Author:** ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)\
**Post date:** [December 7, 2020, 8:17am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/4 "2020-12-07T08:17:42Z")

</div>

Haha! I get it. Deep link an option?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2020, 8:41am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/5 "2020-12-07T08:41:51Z")

</div>

Hadn’t thought about deep-linking.  
Cheers, will investigate.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2020, 8:47am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/6 "2020-12-07T08:47:20Z")

</div>

Nope, don’t think deep links help in this instance.

---

<div class="post-metadata">

**Author:** ![Rosewebstudio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rosewebstudio/32/12261_2.png) [@Rosewebstudio](https://community.glideapps.com/u/Rosewebstudio)\
**Post date:** [December 7, 2020, 8:54am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/7 "2020-12-07T08:54:36Z")

</div>

@Darren_Murphy great question. If you find out please let us know thanks

---

<div class="post-metadata">

**Author:** ![Pablo\_books](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablo_books/32/2110_2.png) [@Pablo\_books](https://community.glideapps.com/u/Pablo_books)\
**Post date:** [December 7, 2020, 9:48am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/8 "2020-12-07T09:48:52Z")

</div>

Does [app.glideapp.io#top](http://app.glideapp.io#top) work?

---

<div class="post-metadata">

**Author:** ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)\
**Post date:** [December 7, 2020, 10:30am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/9 "2020-12-07T10:30:11Z")

</div>

Can you use the “Goto Tab” action?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2020, 10:49am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/10 "2020-12-07T10:49:08Z")

</div>

You mean ‘Navigate to Tab’?  
I did actually try that, and it just leaves me at the bottom of the screen.

---

<div class="post-metadata">

**Author:** ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)\
**Post date:** [December 7, 2020, 10:54am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/11 "2020-12-07T10:54:40Z")

</div>

This would be a great use case for the floating button that @Jeff_Hager came up with a while back. It could be added to every screen for accessibility purposes so that users can return to the top of a screen at any time.

I don’t know a way to navigate to a specific component, so I don’t think this is currently possible without some more accessibility features added.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2020, 10:57am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/12 "2020-12-07T10:57:46Z")

</div>

> [@kyleheney](#):
>
> This would be a great use case for the floating button that @Jeff_Hager came up with a while back. It could be added to every screen for accessibility purposes so that users can return to the top of a screen at any time.

Yeah, agreed.  
It could be argued (probably correctly), that lots of vertical scrolling is a sign of bad design. And normally I’d try to avoid that. But sometimes you get forced into a corner and you’re left with no choice…

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2020, 1:27pm UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/13 "2020-12-07T13:27:11Z")

</div>

> [@kyleheney](#):
>
> I don’t know a way to navigate to a specific component, so I don’t think this is currently possible without some more accessibility features added.

I guess the ideal here would be to have a [tabindex](https://www.w3schools.com/tags/att_global_tabindex.asp) property on components, then you could simply navigate to any component on the screen. Maybe a feature request?

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [December 7, 2020, 2:08pm UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/14 "2020-12-07T14:08:07Z")

</div>

What if we created a second duplicate tab in which the visibility was controlled by the increment from the first?

66 components 😢

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2020, 2:17pm UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/15 "2020-12-07T14:17:26Z")

</div>

And I thought I was a sadist… 😱

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2020, 3:09pm UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/16 "2020-12-07T15:09:29Z")

</div>

As crazy as it seems, I may have no choice but to use the 2nd tab option.  
_sigh_ …clickety-click, clickety-click, clickety-click… 🤪😫

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [December 7, 2020, 3:26pm UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/17 "2020-12-07T15:26:48Z")

</div>

Hurry! The sooner you finish the sooner they release copying tabs / components 😝

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2020, 4:07pm UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/18 "2020-12-07T16:07:10Z")

</div>

![kill-myself](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/c/7c3e584a507d4b28d76c23965eadfca776d329ad.jpeg)

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [December 9, 2020, 4:03am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/19 "2020-12-09T04:03:41Z")

</div>

You could use a button that hides all items on screen the unhides them, it will take you to the top. If toggle is true then. and it just toggles does 1 action in between then toggles again. your done.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 9, 2020, 5:03am UTC](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483/20 "2020-12-09T05:03:47Z")

</div>

Superb!

So here is what I did:

1. Created a user specific column (number type) to use as a toggle
2. Initial state of that column is empty, so I set the visibility of _all_ components to _only_ show when that value is empty
3. Then in the action sequence, the very first thing I do is increment that column (and everything on the screen disappears)
4. Then the other actions in the sequence; add row, set columns, notification, etc
5. And then finally, I do a set columns -\> clear contents on the toggle column, and all components are back and we’ve been sent to the top of the screen.

There is a little bit of a delay between steps 3 and 5, so what I did was create another component with the opposite visibility condition (when toggle is _not_ empty), and used this to provide some feedback for the user, eg. _“Please be patient while we crunch your data…”_

Great solution, (obvious really 🤪), and saved me a bunch of work. Thanks!

[Next page](https://community.glideapps.com/t/send-user-to-top-of-screen-with-action/19483.md?page=2)
