Show Custom Dialog: prompts, confirmations, and input fields

Beginner

Show Custom Dialog lets you display a message with up to three custom buttons and up to three input fields. Learn how to read the button result and access field input from inside a script.

What you'll learn

  • How to configure a dialog with custom button labels and a message
  • How to read which button the user clicked with Get(LastMessageChoice)
  • How to present input fields and read values the user typed

Show Custom Dialog presents a modal dialog to the user with a message, up to three buttons, and optionally up to three text input fields — making it the primary tool for user prompts and confirmations.

1/2
1

Show a simple confirmation dialog

Configure Show Custom Dialog with a title, message, and two buttons. After the step, Get(LastMessageChoice) returns 1 for Button 1 or 2 for Button 2.

FileMaker Script
Show Custom Dialog [ "Confirm Archive" ;
  "Archive this project? It will be hidden from all views." ;
  Button 1: "Archive" ; Button 2: "Cancel"
]

If [ Get ( LastMessageChoice ) ≠ 1 ]
  Exit Script [ Result: False ]  # user canceled
End If

# Proceed with archive logic

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

Sign in to FM Dojo