Script Steps Reference
Table Of Contents
- Chapter 1 Introduction
- Chapter 2 Control script steps
- Chapter 3 Navigation script steps
- Chapter 4 Editing script steps
- Chapter 5 Fields script steps
- Set Field
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Index
- Insert From Last Visited
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert QuickTime
- Insert Object (Windows)
- Insert File
- Update Link (Windows)
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Chapter 6 Records script steps
- Chapter 7 Found Sets script steps
- Chapter 8 Windows script steps
- Chapter 9 Files script steps
- Chapter 10 Accounts script steps
- Chapter 11 Spelling script steps
- Chapter 12 Open Menu Item script steps
- Chapter 13 Miscellaneous script steps
- Appendix A Glossary
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.