Creating and editing custom menu items (FileMaker Pro Advanced)
After you create a menu, you can create menu items. You can also create or edit menu items that are copies of the Standard FileMaker menus. Menu items can be commands, submenus or separators. You can create a menu item that is based on a standard FileMaker command or you can create a menu item that initially does not have an assigned command.
When you base a menu item on a FileMaker command, that menu item inherits all the properties of that command. You can override properties (title, shortcut, or action) to customize the menu item.
When you create a menu item that does not have an assigned command, an <unknown> menu item appears in the Menu Items list in the Edit Custom Menu dialog box. You can then customize the menu item properties.
To add or edit menu items in a custom menu:
1.
2.
Choose File menu > Manage > Custom Menus > Custom Menus tab.
3.
4.
 
Click Create to add a new (<unknown>) menu item to the list. For Menu Item Type, choose Command, then select Based on existing command. In the Specify FileMaker Command dialog box, choose a command, then click Select or OK.
Tip  You can shift-click Create to create an <unknown> command menu item.
Click Create to add an <unknown> menu item to the list. For Menu Item Type, choose Submenu, then click Specify. In the Select Menu dialog box, choose a menu, then click Select.
Note  You can add up to 100 menus to the menu bar. If you add a menu that includes itself as a submenu, you may quickly reach the limit.
Click Create to add an <unknown> menu item to the list. For Menu Item Type, choose Separator.
Drag an arrow Open/Close Data Viewer button up or down to change the order of the menu items in the list.
5.
Select each menu item from the Menu Items list and specify its properties, then click OK to close the Edit Custom Menu dialog box.
 
For Based on existing command, click Specify, choose a different command, then click Select or OK.
For Menu Item Type, choose a different type. (For example, you can change a separator to a command.)
Select Item Name and enter a new name.
Windows: To specify an access key, type an ampersand (&) before the character you want to use as the access key. For example, type &Open to display the Open menu item with the letter “O” as the access key.
To base the menu title on the result of a calculation, click Specify, then build a formula in the Specify Calculation dialog box.
Select Keyboard Shortcut. In the Specify Shortcut dialog box, type a key combination, then click OK. Keyboard shortcuts appear next to menu items in the Menu Items list.
For Keyboard Shortcut, click Specify, type a key combination, then click OK.
Perform a script or script step when a user selects a menu item
Select Action. In the Specify Script Step dialog box, select a step and specify options as necessary, then click OK. For more information about scripts and script steps, see Creating scripts to automate tasks.
Tip  To affect the behavior of a currently running script (for example, to halt, exit, resume, or pause the script) use the Perform Script script step.
For Action, click Specify, modify the script definition, then click OK.
Select Windows or Macintosh or both. Your menu item will appear on the platforms you select.
Note  Some commands are valid on only one platform.
Notes
 •
To override a command’s behavior (item name, keyboard shortcut, or action), you must select the Based on existing command checkbox and choose a different command. If the checkbox is not selected, the original command behavior is retained.
 •
Buttons on toolbars are linked to menu items. If you customize a menu item that has a toolbar button, you also customize the button, its behavior, and its tooltip. For example, the New Record button is linked to the New Record menu item. If you customize the New Record menu item by renaming it to New Contact and specifying a script be performed, the toolbar button will perform the custom New Contact script and the tooltip for the button will display New Contact.
 •
Shortcut menus display when a user right-clicks (Windows) or Control-clicks (Mac OS) an object or an area. If you customize a menu item that has a shortcut menu item, you also customize the behavior performed by the shortcut menu item.
 •
FileMaker Pro Advanced updates menus and menu items when a menu set change is requested either through switching modes, windows, or layouts, or by performing a script that accomplishes a similar result. Menu and menu item titles based on field contents or functions only update when menu sets change.
 •
If you enter the same shortcut or access keys for two menu items, FileMaker will recognize the first occurrence in the menu bar (from right to left, top to bottom).
 •
If you want an ampersand (&) to appear as part of a menu or menu item name, you must type the ampersand twice. For example, if you want a menu name to appear as Records & Reports, enter the title as Records && Reports.
 •
 •
You can modify privilege sets in the Edit Privilege Set dialog box to control which menu items are enabled. See Creating and managing privilege sets.
 •
If you set Available menu commands to Editing only or Minimum, menu items based on FileMaker commands are enabled or disabled according to the setting. All other menu items, including items with customized actions, are disabled. For example, if you choose Editing only, all basic FileMaker editing commands are enabled but all other items (including items with customized actions) are disabled.
 •
If you set Available menu commands to All, all menu items are enabled normally.
 •
 •
FileMaker uses keyboard shortcuts that don’t appear in the menu bar. For example, Command-Option-Z zooms a Mac OS window. In addition, the operating system defines shortcuts. Both types of shortcuts override the ones you define in the Specify Shortcuts dialog box.
 •
Windows and Mac OS keyboard shortcuts are different. For example, if you use FileMaker Pro Advanced for Windows to define the Ctrl+H shortcut, then open the file in Mac OS, the shortcut maps to Command-H. This conflicts with the Mac OS shortcut to hide an open application. The shortcut works as expected on Windows, but on Mac OS, the operating system shortcut overrides the custom-defined shortcut.
 •
Be sure to test custom keyboard shortcuts on both platforms. For information about shortcuts, see the documentation provided with your operating system.
 •
Mac OS: You can assign keyboard shortcuts for applications using the Mac OS X Keyboard & Mouse system preference. If you define a keyboard shortcut for a FileMaker Pro menu in the system preferences, it becomes the default shortcut for the menu command in Custom Menus, including the Standard FileMaker Menus menu set. This menu item will always be present in the menu, and users won’t be able to change the shortcut by making changes in the custom menu dialog boxes.
 •
FileMaker Pro Advanced may not be available in all of the shipping languages of FileMaker Pro.
Related topics 
Creating and editing custom menu sets (FileMaker Pro Advanced)