Defining a button
To define a button:
1.
If you're defining a button that performs a script (as opposed to a single FileMaker Pro command), create the script.
See Creating and editing scripts.
2.
In Layout mode, choose the layout where you want to locate the button from the Layout pop-up menu.
3.
 
In the status toolbar, do the following.
 •
Windows: Click the arrow next to the Button tool Button tool in status toolbar in Windows or the Popover Button tool Popover Button tool in status toolbar in Windows, and choose Button from the menu, then drag the crosshair to draw the button.
 •
OS X: Click and hold the Button tool Button tool in status toolbar in OS X or the Popover Button tool Popover Button tool in status toolbar in OS X, and choose Button from the menu, then drag the crosshair to draw the button.
Tip  You can also choose Insert menu > Button.
Select the object(s) and choose Format menu > Button Setup.
4.
5.
If you want the button to perform an entire script, select Perform Script and choose a script. (You can only select one script per button.)
6.
7.
8.
9.
Notes
 •
To see buttons on a layout, choose View menu > Show > Buttons.
 •
If a button references a script or script step, a button badge Button badge appears in the lower right corner of the button. If the button has other FileMaker Pro badges associated with it, the button badge could be obscured by the other badges and therefore not be visible. For more information about badges, see Identifying badges on layout objects.
 •
To change button text, click the Text tool Text tool in the status toolbar.
 •
 •
 •
choose items in the Show Compatibility list to see which script steps are available in FileMaker Pro (Macintosh or Windows), FileMaker Go (iOS), Custom Web Publishing, or FileMaker WebDirect.
 •
Perform Script is useful if you want to run subscripts. You can choose options to Pause, Resume, Exit, or Halt any script that is currently running. Here is a general description of what happens to the currently running script when a user clicks the button:
 •
Pause (the default): a paused script remains paused.
 •
Resume: a paused script will be resumed after the button’s script executes.
 •
Exit: a current paused script is exited. If the current script was called by another script, control returns to the original script.
 •
Halt: execution of all scripts (except the button’s script) is halted.
 •
Related topics 
Script steps reference (category list)
Script steps reference (alphabetical list)