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.
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.
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.
For Install when, specify a calculation that results in a Boolean value.
To ensure a menu item is always installed, for Install when, enter 1. For example, for the menu item to appear when the file is opened in Windows or OS X, enter 1.
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.
 •
 •
 •
 •
If you enter the same keyboard shortcut or access key (Windows) for two different menu items, FileMaker Pro locates and issues the first instance of the command as follows:
 •
 •
 •
 •
 •
You can modify privilege sets in the Edit Privilege Set dialog box to control which menu items are enabled. See 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.
 •
 •
 •
 •
 •
Related topics 
Creating and editing custom menu sets (FileMaker Pro Advanced)