OnModeExit
Triggers a script to run before a user tries to exit the current mode on a layout.
When the script runs
Before the event has been processed.
Modes in which the trigger can be used
Browse, Find, and Preview modes.
Result
You can use the Exit Script script step within the triggered script to return True or False.
 •
 •
Originated in 
FileMaker Pro 10.0
Notes
See Changing object data without activating script triggers for a list of actions that do not activate this script trigger.
Related topics 
Setting up script triggers
Setting script triggers for layouts
Setting script triggers for objects