Help

Table Of Contents
Using FileMaker Pro Advanced tools
F
ILEMAKER PRO HELP 615
Tip To create a button that displays identically across all records, click the Storage tab and
select Use global storage. Otherwise, each record will display its own button state.
11. Click OK, then OK again.
To create the dynamic button script:
1. Choose Scripts menu > Manage Scripts and click New.
2. Name the script Toggle Buttons.
3. Add a Set Field script step.
4. Select Specify target field or click Specify.
5. Double-click Buttons.
6. For Calculated result, click Specify.
7. Write a Case function that evaluates each GetRepetition test expression for the icon
number and increments the number by 1, replacing the table name “icons” with the table in
which you created the Icons field.
Case (
icons::Buttons = GetRepetition (icons::Icons; 1); GetRepetition
(icons::Icons; 2);
icons::Buttons = GetRepetition (icons::Icons; 2); GetRepetition
(icons::Icons; 3);
icons::Buttons = GetRepetition (icons::Icons; 3); GetRepetition
(icons::Icons; 4);
icons::Buttons = GetRepetition (icons::Icons; 4); GetRepetition
(icons::Icons; 5);
GetRepetition (icons::Icons; 1)
)
8. Click OK and close the Edit Script and Manage Scripts dialog boxes.
To connect the field and the script:
1. In Layout mode, select the Buttons field.
2. Click Inspector in the layout bar, then click Data.
3. In the Behavior area, clear Browse Mode and Find Mode.
4. Choose Format menu > Button Setup.
5. Select Perform Script and specify Toggle Buttons.
6. Click OK.
7. Switch to Browse mode and test your dynamic button.
For more information about using buttons with scripts, see Using buttons with scripts.
Related topics
Displaying databases in Kiosk mode (FileMaker Pro Advanced)
Creating Kiosk solutions (FileMaker Pro Advanced)
Using scripts and buttons to control Kiosk solutions (FileMaker Pro Advanced)
Creating scripts to automate tasks