FM.SetDisableContextualMenus
----------------------------

Whether to disable contextual menus.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FM](component_FM.md) | [10.1](newinversion101.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "FM.SetDisableContextualMenus"; Value ) 

**MBS**( **"FM.SetDisableContextualMenus";** /\* Whether to disable contextual menus. \*/  
**$Value**) /\* Whether to disable the context menu via plugin.  
Pass 1 to disable or 0 to enable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | Whether to disable the context menu via plugin.   Pass 1 to disable or 0 to enable. | 1 |

### Result

Returns OK or error.

### Description

Whether to disable contextual menus.  
Can be set to 1 to disable contextual menu.  
You may want to use layout triggers to disable menus when entering layout and enable when leaving.  
### See also

- [FM.GetDisableContextualMenus](FMGetDisableContextualMenus.md)

### Release notes

- **Version 10.1**
    - Added [FM.GetDisableContextualMenus](https://www.mbsplugins.eu/FMGetDisableContextualMenus.shtml) and [FM.SetDisableContextualMenus](https://www.mbsplugins.eu/FMSetDisableContextualMenus.shtml) functions to disable contextual menus.

### Blog Entries

- [Goodies 13: Sort contextual menu for object styles](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/13-Sortcontextualmenuforobjectstyles.shtml)
- [New in the MBS FileMaker Plugin 10.1](https://www.mbsplugins.de/archive/2020-03-17/New_in_the_MBS_FileMaker_Plugi/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 10.1 - Über 6100 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2020-03-10/Neues_MBS_FileMaker_Plugin_101/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 10.1 - More than 6100 Functions In One Plugin](https://www.mbsplugins.de/archive/2020-03-10/MBS_FileMaker_Plugin_101_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.1pr1](https://www.mbsplugins.de/archive/2020-01-30/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 14th January 2020 , last changed 14th January 2020

  
[FM.ScriptNames](FMScriptNames.md) - [FM.SetSQLBatchMode](FMSetSQLBatchMode.md)

[HTML Version](FMSetDisableContextualMenus.shtml)