Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

Menubar.SetMenuCommandVisible

Show or hide a menu command.

Component Version macOS Windows Linux Server iOS SDK
Menubar 5.0 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Menubar.SetMenuCommandVisible"; Path { ; Visible } )   More

Parameters

Parameter Description Example Flags
Path The ID or path to the menu entry.
Use Menubar.ListMenuCommands to find out the IDs and names.
49297
Visible The new visible state.
Pass 1 to make visible and 0 to hide.
1 Optional

Result

Returns OK or error.

Description

Show or hide a menu command.
This allows you to remove menu entries by path/ID from the FileMaker menu, so user cannot longer use it. The change is not permanent and whenever FileMaker rebuilds the menu, all menu entries are back.

On Windows we can only remove the entry, so we do so if you pass visible = 0.

Examples

Hide preferences menu command:

MBS("Menubar.SetMenuCommandVisible"; 49153; 0)

Hide service menu in FileMaker Pro Advanced in German:

MBS("Menubar.SetMenuCommandVisible"; "FileMaker Pro Advanced¶Dienste"; 0)

See also

Blog Entries

This function checks for a license.

Created 15th November 2014, last changed 14th July 2022


Menubar.SetMenuCommandTitle - MessageComposer.AddAttachmentContainer

💬 Ask a question or report a problem