# Timer to show a component for a certain amount of time

**URL:** <https://forum.inductiveautomation.com/t/timer-to-show-a-component-for-a-certain-amount-of-time/107520>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [June 18, 2025, 1:00pm UTC](https://forum.inductiveautomation.com/t/timer-to-show-a-component-for-a-certain-amount-of-time/107520 "2025-06-18T13:00:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dwayne\_Schwartz](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@Dwayne\_Schwartz](https://forum.inductiveautomation.com/u/Dwayne_Schwartz)\
**Post date:** [June 18, 2025, 1:00pm UTC](https://forum.inductiveautomation.com/t/timer-to-show-a-component-for-a-certain-amount-of-time/107520/1 "2025-06-18T13:00:57Z")

</div>

Ok, this one is probably easy, but I am not thinking clearly this morning. If I have a component that I only want to show for a certain amount of time after a tag changes. How can I set something like this up. Say that I want a label to not be visible 15 minutes after a state change.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 18, 2025, 1:31pm UTC](https://forum.inductiveautomation.com/t/timer-to-show-a-component-for-a-certain-amount-of-time/107520/2 "2025-06-18T13:31:43Z")

</div>

perspective or vision ?

If perspective: Bind the `display` or `visible` property of your component to the tag's timestamp.  
Use an expression to calculate the diff between that timestamp and `now(10000)` (that would check every 10 seconds, should be accurate enough for a 15 minutes timer, but adjust for your needs).  
If that diff is lower than 15 minutes, return true, otherwise return false.

Would look something like

```python
dateDiff({tag_path_timestamp}, now(10000), 'minute') < 15

```

note: If your tag path is dynamic, you should probably create a custom prop and use an indirect tag binding to bind it to the timestamp, then the expression binding on the display property can reference that custom prop.

---

<div class="post-metadata">

**Author:** ![Dwayne\_Schwartz](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@Dwayne\_Schwartz](https://forum.inductiveautomation.com/u/Dwayne_Schwartz)\
**Post date:** [June 18, 2025, 1:33pm UTC](https://forum.inductiveautomation.com/t/timer-to-show-a-component-for-a-certain-amount-of-time/107520/3 "2025-06-18T13:33:13Z")

</div>

It is vision. Sorry. just want the label to not be visible after 15 minutes.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 18, 2025, 1:34pm UTC](https://forum.inductiveautomation.com/t/timer-to-show-a-component-for-a-certain-amount-of-time/107520/4 "2025-06-18T13:34:31Z")

</div>

Same approach in Vision. There's no magic wand that "just" does this.
