Reference > Script triggers reference > OnWindowOpen
 

OnWindowOpen

Performs a script each time you open a window of a database file.

When the script runs

After a window is opened or after the OnFirstWindowOpen script trigger (if it is selected in the Script Triggers tab) is activated.

Modes in which the trigger can be used

OnWindowOpen activates before FileMaker Pro Advanced enters a mode.

Result

None.

Compatibility 

 

Product 

Supported 

FileMaker Pro Advanced 

Yes 

FileMaker Go 

Yes 

FileMaker WebDirect 

Yes 

FileMaker Server 

Yes 

FileMaker Cloud products 

Yes 

FileMaker Data API 

Yes 

Custom Web Publishing 

Yes 

Runtime solution 

Yes 

Originated in 

FileMaker Pro 12.0

Notes 

You can also trigger a script this way when you open a window for a hidden file previously opened via a script or relationship.

Related topics 

Setting up script triggers

Setting script triggers for layouts

Setting script triggers for objects

Go to Related Record script step