FileDialog.SetNameFieldLabel
----------------------------

Sets the text displayed in front of the text field.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FileDialog](component_FileDialog.md) | [2.7](newinversion27.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "FileDialog.SetNameFieldLabel"; Text ) 

**MBS**( **"FileDialog.SetNameFieldLabel";** /\* Sets the text displayed in front of the text field. \*/  
**$Text**) /\* String to set as the text displayed in front of the panel's text field.e.g. "Save file as:" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | String to set as the text displayed in front of the panel's text field. | "Save file as:" |

### Result

Returns OK.

### Description

Sets the text displayed in front of the text field.  
By default the label is "Save As:".  
  
Added Windows support in plugin version 8.3 for Windows Vista or newer.  
### Examples

Sets name label:

 MBS ( "FileDialog.SetNameFieldLabel"; "Database name:" )  
### See also

- [FileDialog.GetNameFieldLabel](FileDialogGetNameFieldLabel.md)
- [FileDialog.OpenFileDialog](FileDialogOpenFileDialog.md)
- [FileDialog.SaveFileDialog](FileDialogSaveFileDialog.md)
- [FileDialog.SelectFolderDialog](FileDialogSelectFolderDialog.md)
- [FileDialog.SelectItemDialog](FileDialogSelectItemDialog.md)

### Example Databases

- [Files/FileDialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileDialog.shtml#1ScriptAnchor_)

This function is free to use.

Created 18th August 2014 , last changed 24th May 2018

  
[FileDialog.SetMessage](FileDialogSetMessage.md) - [FileDialog.SetNameFieldStringValue](FileDialogSetNameFieldStringValue.md)

[HTML Version](FileDialogSetNameFieldLabel.shtml)