Script Steps Reference

Table Of Contents
138 FileMaker Script Steps Reference
The following creates a new record and enters data via a custom dialog box. The dialog
box asks users to enter a product ID, product description, and product cost. The dialog
box shows a custom title, custom text, and three input fields. If the user cancels the dialog
box, the record is deleted.
Example Two:
#In this example, you must create a new record before you can enter
data in it.
New Record/Request
#The custom dialog box solicits information from the user.
Show Custom Dialog ["Product information"; "Enter identifying
information for this product:"; Products::ProductID;
Products::Product description; Products::Product cost]
#After the user exits the custom dialog box, the script evaluates
which button the user has selected.
#In this example, button 1 is "OK" and button 2 is "Cancel."
If [Get (LastMessageChoice) = 2]
#If the user cancels the script, the record created at the
beginning of the script is deleted.
Delete Record/Request [No dialog]
End If
Allow Toolbars
Format
Allow Toolbars [<On/Off>]
Options
On indicates that FileMaker Pro toolbars
and the View menu > Toolbar menu items
are visible.
Off hides FileMaker Pro toolbars, and disables menu items in the View menu >
Toolbar submenu.
Web compatibility
This script step is not web-compatible.
Description
Hides or shows FileMaker Pro toolbars. Use this script step to disable toolbars and menu
items related to toolbars. The toolbar settings are only affected when the file that calls this
script step is active.
In runtime solutions created with the FileMaker Pro Advanced software, toolbars are
hidden in Kiosk mode. Allow Toolbars has no effect in Kiosk mode.