Layout and record script triggers in FileMaker

Intermediate

Fire scripts automatically when layouts load, records commit, or users navigate — using layout-level and object-level script triggers.

What you'll learn

  • The layout-level triggers: OnLayoutEnter, OnLayoutExit, OnRecordLoad, OnRecordCommit
  • How to attach a trigger in Layout Setup
  • How to cancel an action from a trigger (return False)

Script triggers attach scripts to layout and record lifecycle events — loading, committing, exiting — enabling automatic behavior without requiring users to click a button.

1/3
1

Attach a trigger in Layout Setup

In Layout mode, go to Layouts > Layout Setup > Script Triggers tab. Select the trigger event and choose a script. The script runs automatically when that event fires.

TEXT
OnLayoutEnter  — fires when the user navigates to this layout
OnLayoutExit   — fires when the user leaves (can cancel with False)
OnRecordLoad   — fires when a new record comes into view
OnRecordCommit — fires when a record is committed
OnRecordRevert — fires when a record edit is reverted

Sign in to track your progress and pick up where you left off.

Sign in to FM Dojo