SyntaxColoring.SetDataViewerFormatButtonEnabled
-----------------------------------------------

Sets whether to show format button in the value window in data viewer.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SyntaxColoring](component_SyntaxColoring.md) | [15.5](newinversion155.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "SyntaxColoring.SetDataViewerFormatButtonEnabled"; Mode ) 

**MBS**( **"SyntaxColoring.SetDataViewerFormatButtonEnabled";** /\* Sets whether to show format button in the value window in data viewer. \*/  
**$Mode**) /\* Sets the new mode.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Mode | Sets the new mode. | 1 |

### Result

Returns OK or error.

### Description

Sets whether to show format button in the value window in data viewer.  
Value is 0 for off, 1 for on and 2 for automatically.  
### Examples

Turn off button:

 MBS ( "SyntaxColoring.SetDataViewerFormatButtonEnabled"; 0 )  
Turn on the button:

 MBS ( "SyntaxColoring.SetDataViewerFormatButtonEnabled"; 1 )  
Turn on automatic mode:

 MBS ( "SyntaxColoring.SetDataViewerFormatButtonEnabled"; 2 )  
### See also

- [SyntaxColoring.GetDataViewerFormatButtonEnabled](SyntaxColoringGetDataViewerFormatButtonEnabled.md)

### Release notes

- **Version 15.5**
    - Added [SyntaxColoring.GetDataViewerFormatButtonEnabled](https://www.mbsplugins.eu/SyntaxColoringGetDataViewerFormatButtonEnabled.shtml) and [SyntaxColoring.SetDataViewerFormatButtonEnabled](https://www.mbsplugins.eu/SyntaxColoringSetDataViewerFormatButtonEnabled.shtml) function. Pass 2 to do formatting automatically.

### Blog Entries

- [New in MBS FileMaker Plugin 15.5](https://www.mbsplugins.de/archive/2025-11-25/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.5pr6](https://www.mbsplugins.de/archive/2025-11-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 30th October 2025 , last changed 30th October 2025

  
[SyntaxColoring.SetCustomFunctionToolsEnabled](SyntaxColoringSetCustomFunctionToolsEnabled.md) - [SyntaxColoring.SetDebuggerTooltipsEnabled](SyntaxColoringSetDebuggerTooltipsEnabled.md)

[HTML Version](SyntaxColoringSetDataViewerFormatButtonEnabled.shtml)