# Is there a way to get the name of the screen?

**URL:** <https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332>\
**Category:** Questions about Thunkable X\
**Tags:** navigate-screen\
**Created:** [January 28, 2021, 5:03am UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332 "2021-01-28T05:03:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [January 28, 2021, 5:03am UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332/1 "2021-01-28T05:03:10Z")

</div>

I’m wanting to be able to navigate from screen to screen based on the name of the screen.  
Another option would be to obtain a list of the screens or count the screens. Just some way where if I change the order of the screens or rename the screens in my project it would update accordingly.

I couldn’t find anything in the forums where it would update based on changes I made to the project.

Thanks Thunkers

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 28, 2021, 7:23am UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332/2 "2021-01-28T07:23:53Z")

</div>

When you change a screen name the navigate to screen will change to reflect the new name.

The navigate to component can also take a variable instead of the default screen menu

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/d/9db2be10ed432952fb6d3514fddd5762eeddd862.png)

This is an example

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [January 28, 2021, 7:30pm UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332/3 "2021-01-28T19:30:03Z")

</div>

I did know about those 2 things, but is there a way to update the variable to also reflect the name of the screen if you renamed it?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 28, 2021, 8:37pm UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332/4 "2021-01-28T20:37:13Z")

</div>

If you rename a screen in the Design tab, the “navigate to” block’s value updates automatically. You can also, as @muneer pointed out, use variables or even a text block with a screen’s name to navigate to a specific screen.

But it sounds like you’re also concerned about the order of the screens and what happens if you re-order them.

Can you say a little bit more about a specific example of what you’re trying to do?

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [January 28, 2021, 8:47pm UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332/5 "2021-01-28T20:47:33Z")

</div>

Right, so if I change the name of a screen, I want the variable to update to it.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 28, 2021, 10:26pm UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332/6 "2021-01-28T22:26:57Z")

</div>

If you use a variable, it won’t auto-update. But if you just leave the value as is with the built-in screen name block, it will auto-update. You can try it. Drag a new “navigate to” block onto your Blocks tab, then rename the screen it’s set to navigate to. The value will update immediately to the new name.

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [January 29, 2021, 1:26am UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332/7 "2021-01-29T01:26:01Z")

</div>

Ok so that can’t be done for now. Thank you guys for the help

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 29, 2021, 1:39am UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332/8 "2021-01-29T01:39:10Z")

</div>

I don’t think you’d need this if you changed the order of your screens @overshield - do you have a specific use case where it _doesn’t_ work for you?

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [January 30, 2021, 4:41am UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332/9 "2021-01-30T04:41:08Z")

</div>

So sometimes when I’m building I’ll work on a screen and it becomes complex enough that it should be 2 separate screens. And instead of updating a list of screen names each time, it would be nice if there was a block that just said “get screen name” so that regardless of the names of the screen or any of that it would just update.

Then if I wanted the users to be able to revert to the most recent screen prior to the current screen the back button would auto take them to it.

It’s no biggie I can just make a list of screen names as variables and update them as I go. I’ll debug it if I find I’ve renamed a screen and it stops working.

Thanks everyone.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:30pm UTC](https://community.thunkable.com/t/is-there-a-way-to-get-the-name-of-the-screen/1072332/10 "2024-11-08T13:30:28Z")

</div>


