Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

Menubar.SetMenuCommandVisible

Show or hide a menu command.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Menubar 5.0 Yes No No No No

MBS( "Menubar.SetMenuCommandVisible"; Path; Visible )

Parameters

Parameter Description Example value
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

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.

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


Menubar.SetMenuCommandTitle   -   MessageComposer.AddAttachmentContainer

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins