# Startup Screen Based on Client Tag

**URL:** <https://forum.inductiveautomation.com/t/startup-screen-based-on-client-tag/76721>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [July 21, 2023, 5:35pm UTC](https://forum.inductiveautomation.com/t/startup-screen-based-on-client-tag/76721 "2023-07-21T17:35:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [July 21, 2023, 5:35pm UTC](https://forum.inductiveautomation.com/t/startup-screen-based-on-client-tag/76721/1 "2023-07-21T17:35:25Z")

</div>

I have a client startup script that sets a couple navigation index tags and should swap to the correct screen, but the swapping part doesn't seem to be working.

The script that is called is in the project library. Basically,

1. Read client tag that determines area based on IP (1,8,10,15, or 19)
2. Write tier 1 index based on the area and tier 2 index to 0.
3. Swap to the correct page.

Numbers 1 and 2 complete no problem, and I can see my tier 1 navigation displaying the correct "selected screen." However, the swap to does not seem to execute, or it executes before the screen that is marked as the "startup screen" opens - is that why it's not working?

I'm guessing the correct approach here is going to be to unmark the "open on startup" window and manually do it with the startup script, every time.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 21, 2023, 5:38pm UTC](https://forum.inductiveautomation.com/t/startup-screen-based-on-client-tag/76721/2 "2023-07-21T17:38:46Z")

</div>

> [@amarks](#):
>
> The script that is called is in the project library.

Where is it called from?

> [@amarks](#):
>
> or it executes before the screen that is marked as the "startup screen" opens - is that why it's not working?

This would be my guess.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [July 21, 2023, 5:42pm UTC](https://forum.inductiveautomation.com/t/startup-screen-based-on-client-tag/76721/3 "2023-07-21T17:42:24Z")

</div>

Called from the Client Startup Script

Handling the startup screen manually and removing the "Open on Startup" option from my main screen solved the issue.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 21, 2023, 5:43pm UTC](https://forum.inductiveautomation.com/t/startup-screen-based-on-client-tag/76721/4 "2023-07-21T17:43:41Z")

</div>

> [@amarks](#):
>
> Called from the Client Startup Script

Yeah, I see that. Apparently my lack of caffeine today is effecting my ability to read.
