# Idea: Gateway Event Scripts "Run Now" Button

**URL:** <https://forum.inductiveautomation.com/t/idea-gateway-event-scripts-run-now-button/117674>\
**Category:** Ignition\
**Created:** [October 30, 2026, 2:41pm UTC](https://forum.inductiveautomation.com/t/idea-gateway-event-scripts-run-now-button/117674 "2026-10-30T14:41:49Z")\
**Posts on this page:** 6\
**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:** [October 30, 2026, 2:41pm UTC](https://forum.inductiveautomation.com/t/idea-gateway-event-scripts-run-now-button/117674/1 "2026-10-30T14:41:50Z")

</div>

Add a simple "Run Now" button to the gateway even scripts dialog popup at the bottom by the ok, apply, and cancel buttons (perhaps with a confirmation as well) as an easy way to test the scripts without them being triggered "naturally".

> **[Gateway Event Scripts "Run Now" Button | Ignition Features and Ideas |...](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/gateway-event-scripts-run-now-button)**
>
> Add a simple "Run Now" button to the gateway even scripts dialog popup at the bottom by the ok, apply, and cancel buttons (perhaps with a confirmation as well)

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [October 30, 2026, 2:53pm UTC](https://forum.inductiveautomation.com/t/idea-gateway-event-scripts-run-now-button/117674/2 "2026-10-30T14:53:16Z")

</div>

Voted. Was going to suggest this myself a while back.

---

<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:** [October 30, 2026, 3:05pm UTC](https://forum.inductiveautomation.com/t/idea-gateway-event-scripts-run-now-button/117674/3 "2026-10-30T15:05:42Z")

</div>

I'm confused on how you intend this to work. Various gateway event scripts already run immediately when you save the project, and saving the project is **necessary** to get them into the gateway so it is **possible** to run them. (Startup, Timer, Tag Change)

Message handlers cannot run without a payload--not sure what you expect to happen there. Gateway shutdown scripts and scheduled events are the only ones that might be helped here.

---

<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:** [October 30, 2026, 3:08pm UTC](https://forum.inductiveautomation.com/t/idea-gateway-event-scripts-run-now-button/117674/4 "2026-10-30T15:08:00Z")

</div>

Yes, definitely some details to work out on that. I was specifically working with scheduled events. Startup, shutdown, tag change, and scheduled would be a good place to start.

---

<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:** [October 30, 2026, 3:14pm UTC](https://forum.inductiveautomation.com/t/idea-gateway-event-scripts-run-now-button/117674/5 "2026-10-30T15:14:46Z")

</div>

Startup and tag change already run on project save.

If you have the other events delegate via one-liners to project library functions (and you should), you can decorate with my `system.util.runInGateway` toolkit function to make them triggerable from the designer script console. Can even be used with the events that need payloads.

(I wouldn't hold my breath on getting any functionality that **doesn't** include saving the project.)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 30, 2026, 4:19pm UTC](https://forum.inductiveautomation.com/t/idea-gateway-event-scripts-run-now-button/117674/6 "2026-10-30T16:19:22Z")

</div>

My current, not-fully-crystallized thinking, is a variation of a "gateway script console" that allows the workspace you are in to "decorate" the console with extra values - e.g., if you open the gateway script console and are in Perspective, you have some ability to "mock" session props/component data/etc to test your scripts. Then if you swap over to gateway script(s), similar "helpers" for payload data shapes.

Or something along those lines. I'm not sure exactly how it will work and it won't happen in the immediate future (i.e. Ignition 2027) but that's where my thinking currently lands.
