Dialog.ClearFields
------------------

Clears all fields.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Dialog](component_Dialog.md) | [6.4](newinversion64.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Dialog.ClearFields" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Clears all fields.  
### See also

- [SyntaxColoring.AddContextMenuCommand](SyntaxColoringAddContextMenuCommand.md)

### Release notes

- **Version 16.1**
    - Enabled [Dialog.ClearFields](https://www.mbsplugins.eu/DialogClearFields.shtml), [Dialog.AddField](https://www.mbsplugins.eu/DialogAddField.shtml), [Dialog.GetFieldText](https://www.mbsplugins.eu/DialogGetFieldText.shtml) and [Dialog.SetFieldText](https://www.mbsplugins.eu/DialogSetFieldText.shtml) functions for Windows since we got an alternative dialog with edit fields, which does most of our [dialog](https://www.mbsplugins.eu/component_Dialog.shtml) functions.

### Blog Entries

- [Goodies 33: Custom context menu commands for FileMaker ScriptWorkspace](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/33-CustomcontextmenucommandsforFileMakerScriptWorkspace.shtml)
- [MBS FileMaker Plugin, version 16.1pr4](https://www.mbsplugins.de/archive/2026-02-20/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Add a search and replace command for FileMaker Script Workspace](https://www.mbsplugins.de/archive/2019-11-14/Add_a_search_and_replace_comma/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.4pr7](https://www.mbsplugins.de/archive/2016-09-14/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 13th September 2016 , last changed 18th February 2026

  
[Dialog.AddField](DialogAddField.md) - [Dialog.CloseSheet](DialogCloseSheet.md)

[HTML Version](DialogClearFields.shtml)