Logic on exit of an application

Hello!

Is there a way to plug logic into an exit of an application (no save)?

In this particular use case I have a mini app that pops up from a ‘Queue App Link’ action in row change. If the user decides to exit out of the mini app without saving I want to run logic. Any recommendations on how I can do this?

This is not possible as far as I am aware. As a workaround I would consider disabling the cancel/close buttons using an app setting, and forcing the user to press save (the save button is really more of a continue in this situation but :person_shrugging:) and run the logic you’re looking for on the basis of a no-changes save.

2 Likes

Is this what you are referring to? I tried this approach and the ‘x’ is still visible. Am I missing something? @ian.p

That was what I had in mind, yes. Like you said, they can still close the pop-up with the red x, so not sure there’s a great solution.

Can you have the no-changes logic run on form init of the mini app instead, and have the save logic overwrite those changes if the user chooses not to cancel out of the mini app?

Thanks Ian, yes we have logic on save that will set us up if the user does nothing but unfortunately are stuck if the user presses the x and closes out the mini app. I suppose we’ll just have to train against the user doing that.