# Orgainzed event actions on button in perspective

**URL:** <https://forum.inductiveautomation.com/t/orgainzed-event-actions-on-button-in-perspective/70910>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 10, 2023, 2:55pm UTC](https://forum.inductiveautomation.com/t/orgainzed-event-actions-on-button-in-perspective/70910 "2023-03-10T14:55:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe.miller](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@joe.miller](https://forum.inductiveautomation.com/u/joe.miller)\
**Post date:** [March 10, 2023, 2:55pm UTC](https://forum.inductiveautomation.com/t/orgainzed-event-actions-on-button-in-perspective/70910/1 "2023-03-10T14:55:53Z")

</div>

we have a machine that needs remote settings configuration. I am asked to duplicate the HMI on the machine. I only have access to the settings tags, a save tag, and a exit without saving tag.

On a button, under event, I first set up a script action that sets the save tag to true. Then on the next action, I configured the popup action to close the settings popup.

It seems like the close popup action is interfering with the first action (the tag write script).

I thought the actions would operate in numerical order since they are listed by number and we are given the abilty move the configured actions up or down in the list.

Can anyone help me by explaining how multiple actions are compiled and run?

Thanks so much,

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/2/2208b17e05f1879084e3b059b5f7c97de9968a88.png)

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [March 10, 2023, 3:28pm UTC](https://forum.inductiveautomation.com/t/orgainzed-event-actions-on-button-in-perspective/70910/2 "2023-03-10T15:28:51Z")

</div>

This has come up several times. The various scripts run asynchronously, so there's no guarantee they will finish in a specified order.

> [@Changing tag values on click action](https://forum.inductiveautomation.com/t/changing-tag-values-on-click-action/63908/3):
>
> Your navigation action is navigating away from the page and cancelling your script. Actions are started in order but are executed asynchronously; they do not wait for the previous to finish before running. Script actions have to be sent to the gateway and are thus the slowest to run, and I believe they’re terminated if the owner is closed. I actually started a topic about this exact situation

> [@Component action numbered order is deceptive for inexperienced users](https://forum.inductiveautomation.com/t/component-action-numbered-order-is-deceptive-for-inexperienced-users/63906):
>
> I recently had a question from a colleague who is fairly new to Ignition about why his component actions weren’t working properly. Turns out he had two actions defined that were supposed to happen in succession; however, the order that these events happen is actually indeterminate while the actions are executed in order, they are run asynchronously and can therefore finish out of order, but the interface itself makes it seem as though they will run sequentially. [image]

---

<div class="post-metadata">

**Author:** ![joe.miller](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@joe.miller](https://forum.inductiveautomation.com/u/joe.miller)\
**Post date:** [March 10, 2023, 5:55pm UTC](https://forum.inductiveautomation.com/t/orgainzed-event-actions-on-button-in-perspective/70910/3 "2023-03-10T17:55:02Z")

</div>

thanks. That is what I assume but I wanted to know for sure.
