Dialog.GetFieldText
-------------------

Queries field text.

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

MBS( "Dialog.GetFieldText"; FieldIndex ) 

**MBS**( **"Dialog.GetFieldText";** /\* Queries field text. \*/  
**$FieldIndex**) /\* The index of the field.  
Range from 0 to 9.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FieldIndex | The index of the field.   Range from 0 to 9. | 0 |

### Result

Returns field text or error.

### Description

Queries field text.  
### Examples

Query text of first field:

 MBS ("Dialog.GetFieldText"; 0)  
### See also

- [Dialog.AddField](DialogAddField.md)
- [Dialog.SetFieldText](DialogSetFieldText.md)
- [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.

### Example Databases

- [Window/Dialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/Dialog.shtml#4ScriptAnchor_)

### Blog Entries

- [Goodies 33: Custom context menu commands for FileMaker ScriptWorkspace](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/33-CustomcontextmenucommandsforFileMakerScriptWorkspace.shtml)
- [Dialogs with fields for Windows](https://www.mbsplugins.de/archive/2026-02-25/Dialogs_with_fields_for_Window/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 16.1pr4](https://www.mbsplugins.de/archive/2026-02-20/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Advent calendar - Door 12 - Sending Mails](https://www.mbsplugins.de/archive/2024-12-12/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Advent calendar: 17 - Dialog](https://www.mbsplugins.de/archive/2023-12-17/MBS_Plugin_Advent_calendar_17_/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.GetDefaultButton](DialogGetDefaultButton.md) - [Dialog.GetIcon](DialogGetIcon.md)

[HTML Version](DialogGetFieldText.shtml)