Reference > Script triggers reference > OnModeExit
 

OnModeExit

Performs a script 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.

True: The event that triggered the script proceeds.

False: The event that triggered the script is canceled.

Compatibility 

 

Product 

Supported 

FileMaker Pro Advanced 

Yes 

FileMaker Go 

Yes 

FileMaker WebDirect 

Yes 

FileMaker Server 

Yes 

FileMaker Cloud 

Yes 

FileMaker Data API 

Yes 

Custom Web Publishing 

Yes 

Runtime solution 

Yes 

Originated in 

FileMaker Pro 10.0

Notes 

See Actions that don’t activate 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