Script Triggers
What kinds of layout based script triggers are in use?
Many layouts in Complete have an OnLayoutEnter trigger attached to them, and these triggers are trying to accomplish one or more of these three things:
Finally, all "real" layouts (not printing layouts or mini-windows) are running an OnLayoutExit script trigger that feeds the back and fwd system.
Can I turn script triggers off?
You can certainly turn off individual triggers by setting them not to operate in browse mode.
This keeps the trigger tied to the object in case you want to turn it back on later. If you haven't done this before, check out the section on Script Triggers in FileMaker's built in Help.
You can also temporarily disable triggers by setting the variable...
... to 1. Just be sure to set it back to "" or 0 when you're done. You can see an example of this in the script "Collapse Side Bar ( Action )"
Note that we also have a nice script you can call that will stop layout-based script triggers. You'll likely want to preface any new scripts you assign to layout based triggers with a call to this "Halt Layout Based Script Triggers" script. This stops the script is the layout is drawn off screen or has a name other than the solution's main window name. For an example of this, see the beginning of the script "On Project Record Load".