# Open View when Tag Changed

**URL:** <https://forum.inductiveautomation.com/t/open-view-when-tag-changed/92252>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 22, 2024, 6:07pm UTC](https://forum.inductiveautomation.com/t/open-view-when-tag-changed/92252 "2024-06-22T18:07:51Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Francisco\_Ochoa](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@Francisco\_Ochoa](https://forum.inductiveautomation.com/u/Francisco_Ochoa)\
**Post date:** [June 24, 2024, 3:03pm UTC](https://forum.inductiveautomation.com/t/open-view-when-tag-changed/92252/18 "2024-06-24T15:03:54Z")

</div>

> [@System.perspective.navigate doesn't work on session custom property tag change script](https://forum.inductiveautomation.com/t/system-perspective-navigate-doesnt-work-on-session-custom-property-tag-change-script/78348/2):
>
> ```python
> if currentValue.value > 2:
> for page in self.pages:
> system.perspective.navigate(page="/", sessionId=self.id, pageId=page.id)
> 
> ```

i dont have syntax error but the code doesnt run

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/6/36f50d56e2ff1e2f82e425463b833901840a6fba.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/b/7b6dfe73884c032fc10894d983de5bcb7f1ea69f.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/d/adc862e45a745d332793b169df3771f72c78aac1.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/open-view-when-tag-changed/92252)._
