# Best Event Type to use with DateTimeInput Component in Perspective

**URL:** <https://forum.inductiveautomation.com/t/best-event-type-to-use-with-datetimeinput-component-in-perspective/113799>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 5, 2026, 9:24pm UTC](https://forum.inductiveautomation.com/t/best-event-type-to-use-with-datetimeinput-component-in-perspective/113799 "2026-02-05T21:24:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slick](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Slick](https://forum.inductiveautomation.com/u/Slick)\
**Post date:** [February 5, 2026, 9:24pm UTC](https://forum.inductiveautomation.com/t/best-event-type-to-use-with-datetimeinput-component-in-perspective/113799/1 "2026-02-05T21:24:03Z")

</div>

I have a popup that I would like to have appear after a user selects the date and time in a DateTime Input component and then clicks out of the component to make it disappear. What event type would work best for triggering my event sctipy when the user clicks outside of the component so that it disappears? I tried onBlur, but that makes the popup appear when I switch the month in the component, which is too early.

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [February 5, 2026, 9:37pm UTC](https://forum.inductiveautomation.com/t/best-event-type-to-use-with-datetimeinput-component-in-perspective/113799/2 "2026-02-05T21:37:58Z")

</div>

Does the `onActionPerformed` event not fire when you want?

> **[Action Performed Event​ - Perspective Event Types Reference | Ignition User...](https://www.docs.inductiveautomation.com/docs/8.1/appendix/reference-pages/perspective-event-types-reference#action-performed-event)**
>
> Perspective Events provide the opportunity to handle any type of user input or session event as you see fit. To this end, Perspective exposes dozens of configurable events in the Configure Events... dialog. The goal of this page is to explain what...

If not, you could use a `onValueChanged` event on the component `value` property and check for the event origin to be `Browser`

> **[Perspective Property Change Scripts | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/scripting-in-perspective/perspective-property-change-scripts)**
>
> With Perspective, individual component properties can have a property change script. When a change script is set up on a property, it will run when the property changes its value. Multiple different properties on the same component can each have...

---

<div class="post-metadata">

**Author:** ![Slick](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Slick](https://forum.inductiveautomation.com/u/Slick)\
**Post date:** [February 6, 2026, 1:14pm UTC](https://forum.inductiveautomation.com/t/best-event-type-to-use-with-datetimeinput-component-in-perspective/113799/4 "2026-02-06T13:14:39Z")

</div>

The `onActionPerformed` event does not work in this case because it causes my popup to appear on the first action performed. I want to be able to make multiple “actions”, such as changing the time and date within the DateTime input component before the popup appears. This is why I thought that maybe there is an event type that represents when I click out of my component and make it disappear, but I could not find exactly what I’m looking for since `onBlur` does not work when changing the months within the component.

In terms of a value change script, it’s the same thing. It causes the popup to appear on the first action rather than when I am done with my multiple actions within the component.

---

<div class="post-metadata">

**Author:** ![Ryan\_Deardorff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_deardorff/32/63815_2.png) [@Ryan\_Deardorff](https://forum.inductiveautomation.com/u/Ryan_Deardorff)\
**Post date:** [February 6, 2026, 2:59pm UTC](https://forum.inductiveautomation.com/t/best-event-type-to-use-with-datetimeinput-component-in-perspective/113799/5 "2026-02-06T14:59:04Z")

</div>

You could set a boolean flag when `onActionPerformed` is triggered indicating the popup had appeared, then use an `onClick` handler on the root of the page view that checks it and opens the other popup.

---

<div class="post-metadata">

**Author:** ![Slick](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Slick](https://forum.inductiveautomation.com/u/Slick)\
**Post date:** [February 9, 2026, 6:17pm UTC](https://forum.inductiveautomation.com/t/best-event-type-to-use-with-datetimeinput-component-in-perspective/113799/6 "2026-02-09T18:17:38Z")

</div>

> [@Ryan\_Deardorff](#):
>
> hat checks it and opens the other popup.

There is only 1 pop up that needs to appear. The issue is that there is no event that works with the `DateTime Input` component that I know of that represents clicking out of the component. `onBlur` event kind of works, but the problem with that is that it triggers the popup every time the month is changed, which is a pain if you want to go many months back or if you are trying to select a date after changing the month.

---

<div class="post-metadata">

**Author:** ![Ryan\_Deardorff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_deardorff/32/63815_2.png) [@Ryan\_Deardorff](https://forum.inductiveautomation.com/u/Ryan_Deardorff)\
**Post date:** [February 9, 2026, 6:22pm UTC](https://forum.inductiveautomation.com/t/best-event-type-to-use-with-datetimeinput-component-in-perspective/113799/7 "2026-02-09T18:22:22Z")

</div>

By “other popup” I meant the one that isn’t the DateTime popup. You’re right, there’s no event that works with that component, which is why I’m suggesting a click handler on the page view itself for when, as you say, the user “clicks out of the component to make it disappear”.
