# Perspective Docked view only executes script when loading for the first time

**URL:** <https://forum.inductiveautomation.com/t/perspective-docked-view-only-executes-script-when-loading-for-the-first-time/35274>\
**Category:** Ignition\
**Tags:** ignition80, perspective, scripting\
**Created:** [June 3, 2020, 3:15am UTC](https://forum.inductiveautomation.com/t/perspective-docked-view-only-executes-script-when-loading-for-the-first-time/35274 "2020-06-03T03:15:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![321liftoff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/321liftoff/32/27544_2.png) [@321liftoff](https://forum.inductiveautomation.com/u/321liftoff)\
**Post date:** [June 3, 2020, 12:20pm UTC](https://forum.inductiveautomation.com/t/perspective-docked-view-only-executes-script-when-loading-for-the-first-time/35274/2 "2020-06-03T12:20:02Z")

</div>

I believe the reported issue here is the same that I am seeing?

> [@Ignition Perspective - run script on page refresh](http://forum.inductiveautomation.com/t/ignition-perspective-run-script-on-page-refresh/27237):
>
> Where can I put code to clear text fields when user refreshes page? Thanks.

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-docked-view-only-executes-script-when-loading-for-the-first-time/35274)._
