WordFile.GetFieldText
---------------------

Queries field value.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WordFile](component_WordFile.md) | [7.5](newinversion75.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "WordFile.GetFieldText"; WordFile; FieldName ) 

**MBS**( **"WordFile.GetFieldText";** /\* Queries field value. \*/  
**$WordFile**; /\* The reference number of the open word file. \*/   
**$FieldName**) /\* The name of the field.e.g. "Name" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WordFile | The reference number of the open word file. | $wordFile |
| FieldName | The name of the field. | "Name" |

### Result

Returns text or error.

### Description

Queries field value.  
The plugin looks for the field with given name and queries it's text.  
Returns true if field was found.  
### See also

- [WordFile.SetFieldText](WordFileSetFieldText.md)

### Release notes

- **Version 7.5**
    - Added [WordFile.FieldNames](http://www.mbsplugins.eu/WordFileFieldNames.shtml), [WordFile.GetFieldText](http://www.mbsplugins.eu/WordFileGetFieldText.shtml) and [WordFile.SetFieldText](http://www.mbsplugins.eu/WordFileSetFieldText.shtml).

### Example Databases

- [WordFile/WordFile](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WordFile/WordFile.shtml#3ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 7.5pr8](https://www.mbsplugins.de/archive/2017-11-18/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2021, Seite 20](https://filemaker-magazin.de/neuigkeit/4165-Appetithappen-FMM_202106)

This function checks for a license.

Created 15th November 2017 , last changed 15th November 2017

  
[WordFile.GetCaseless](WordFileGetCaseless.md) - [WordFile.GetMediaFile](WordFileGetMediaFile.md)

[HTML Version](WordFileGetFieldText.shtml)