AnsweredAssumed Answered

Can you detect if OnLayoutExit is being triggered by Close Window?

Question asked by anothersmurf on Jan 25, 2019
Latest reply on Jan 25, 2019 by user19752

I use an On Layout Exit trigger on a layout. As per FileMaker documentation, the script runs not just when changing layouts (which I want) but also when the window is being closed. Given what the script does, that is pointless and causes an unnecessary delay in closing the window. I would like to avoid that.


So I would like to put into my trigger script something like:


If [Window is being closed]

Exit Script

End If


Is there a way to detect whether the window is being closed, as opposed to changing the layout?