Just a quick thing to add as well as I'm seeing it elsewhere. I have a button on the layout that says Delete Record. It runs a script that deletes the record then goes to a certain layout. The problem is it deletes the record as expected, but then when it goes to the next step, it executes the onExit script trigger which pops up the pop up above. How can I also halt it from running any onExit script?
End your OnObjectExit performed script with: Exit Script [False] and the action that tripped the trigger will be cancelled.
To keep a script from tripping script triggers, you can use the following method:
In the script that is tripping script triggers:
At the beginning of the script:
Set Variable [$$TriggersOff ; value: True ]
At the end of the script and at any point where the script can halt or exit:
Set Variable [$$TriggersOff ; Value: False ]
In the scripts performed by script triggers:
If [ Not $$TriggersOff ]
Put Rest of script here