Defining a button
1. If you're defining a button that performs a script (as opposed to a single FileMaker Pro command), create the script.
2.
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.
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.)
7.
8. Click OK.
•
• If a button references a script or script step, a 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 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.
• Another type of button that you can create is a popover button, which displays a popover. See Working with popovers on layouts.