Quick Start

Table Of Contents
68
Getting Started Guide
Assign a script to a button
While buttons are generally more convenient for users, scripts are a
more powerful feature, allowing you to combine many menu
commands into a single executable action. Using a button to run a
script gives you the best of both features.
To assign the script you just created to a button:
1. In MyFile.08.fp5, choose Layout #1 from the layout pop-up menu.
2. Choose View menu > Layout Mode.
3. Double-click the button you created earlier in this lesson.
4. In the Specify Button dialog box, select the Perform Script script
step from the top of the list on the left.
5. In the Options area, select Preview Labels Layout from the list of
available scripts. Leave the rest of the default settings as they are.
If you have not already created this script, follow the steps described
in Create a script to preview the Labels Layout” on page 66.
6. Click OK to save this button.
Rename the button
1. Click the text tool .
2. Click the button once. The text insertion point appears in the
button.
3. Type Preview Labels Layout to rename this button.
Test the button
1. In Browse mode, test the button by clicking it.
Clicking this button performs the script, which displays the Labels
layout and switches to Preview mode.
2. When you are finished with this lesson, close each open file by
choosing File menu > Close.
For more information
In this lesson, you have created buttons and scripts, and used these two
features together. For more information on creating buttons and scripts
in FileMaker Pro, see chapter 10 of the FileMaker Pro User’s Guide.