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.See Creating and editing scripts for more information.
2.
3.
Click the Button tool in the status toolbar. Choose a starting point on your layout and drag the crosshair pointer diagonally until the button is the size you want, then release the mouse button. You can also choose Insert menu > Button. Attach a button definition to existing object(s), like text, or a field If you select multiple objects, FileMaker Pro groups them when you define them as a button. See Grouping and ungrouping objects for more information.
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. Click OK.
• To see buttons on your layout, choose View menu > Show > Buttons. With this option on, buttons have gray outlines.
• In the Button Setup dialog box, you can choose a button style, and choose whether the pointer will change to a hand cursor when it is over the button.
• To change button text, click the Text tool in the status toolbar.
• Select Indicate web compatibility to determine which commands are unavailable when you publish the database on the web.
• 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.