Help

Table Of Contents
Creating scripts to automate tasks
F
ILEMAKER PRO HELP 441
could define a button that performs a more complex script that finds, sorts, and prints records, or
one that transfers information from one FileMaker
Pro file to another.
In Browse mode or in Find mode, you can click a button to perform its command or script. You can
also include buttons in a layout’s
tab order, which allows you to tab to a button and “click” it by
pressing the Space bar. See Setting the tab order for data entry.
You can turn many FileMaker objects into buttons. You can copy an existing button, or use text and
graphics to design your own button.
Note Another type of button that you can create is a popover button, which displays a popover. See
Working with popovers on layouts.
Related topics
Creating and editing scripts
Perform Script and script parameter examples
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. Create or select the object that will serve as the button on the layout in one of two ways, as
follows.
4. In the Button Setup dialog box, select a command from the list and, if necessary, set options
for the command.
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.)
To Do this
Create a new button In the status toolbar, do the following.
Windows: Click the arrow next to the Button tool or the
Popover Button tool , and choose Button from the
menu, then drag the crosshair to draw the button.
OS X: Click and hold the Button tool or the Popover
Button tool , and choose Button from the menu, then
drag the crosshair to draw the button.
Tip You can also choose Insert menu > Button.
Attach a button definition to
existing object(s), like text
or a field
Select the object(s) and choose Format menu > Button Setup.
If you select multiple objects, FileMaker Pro groups them when you
define them as a button. See
Grouping and ungrouping objects.