Layout script triggers

Layout script triggers are activated when a user enters a specific layout. See Setting script triggers for layouts.

OnRecordLoad

Performs a script after a record is made current or is entered, such as after a user or script switches to a layout, switches records, opens a new window, creates or deletes a record, or performs a Find operation.

OnRecordCommit

Performs a script before a record that has been changed is committed.

OnRecordRevert

Performs a script before a set of records is reverted by the Records menu > Revert Record command or by the Revert Record/Request script step.

OnLayoutKeystroke

Performs a script when one or more characters are entered from the keyboard either directly or via an input method editor (IME). Use the Get(TriggerKeystroke) function to return the characters that activated the script trigger.

OnLayoutEnter

Performs a script after a layout is loaded.

OnLayoutExit

Performs a script before a layout is exited.

OnLayoutSizeChange

Performs a script after a layout or window has changed size.

OnModeEnter

Performs a script after you switch modes manually or in a script step.

OnModeExit

Performs a script before a user tries to exit the current mode on a layout.

OnViewChange

Performs a script after you switch views (Form, List, Table) manually or in a script step.

OnGestureTap

Performs a script when a tap gesture is received on a layout (Windows, iOS, and iPadOS only).

OnExternalCommandReceived

Performs a script when the user presses one of the following buttons on the lock screen or on an external device: stop, play, pause, toggle play/pause, play next, play previous, or begin or end seeking forward or backward.