OnModeEnter
Triggers a script to run after you switch modes manually or in a script step.
When the script runs
After the event has been processed.
Modes in which the trigger can be used
Browse, Find, and Preview modes.
Result
None.
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