FM.LayoutNameForLayoutID
------------------------

Queries layout name for a layout ID.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FM](component_FM.md) | [10.2](newinversion102.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "FM.LayoutNameForLayoutID"; LayoutID { ; FileName } ) 

**MBS**( **"FM.LayoutNameForLayoutID";** /\* Queries layout name for a layout ID. \*/  
**$LayoutID**; /\* The ID of the layout.e.g. "123" \*/   
**$FileName**) /\* Optional; The name of the file to look inside.  
If empty, we default to current file. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| LayoutID | The ID of the layout. | "123" |  |
| FileName | The name of the file to look inside.   If empty, we default to current file. |  | Optional |

### Result

Returns name or error.

### Description

Queries layout name for a layout ID.  
### Examples

Query name for ID:

 MBS ( "FM.LayoutNameForLayoutID"; 2 )  
### Release notes

- **Version 10.2**
    - Added [FM.CurrentLayoutID](https://www.mbsplugins.eu/FMCurrentLayoutID.shtml), [FM.CurrentLayoutName](https://www.mbsplugins.eu/FMCurrentLayoutName.shtml), [FM.LayoutIDForLayoutName](https://www.mbsplugins.eu/FMLayoutIDForLayoutName.shtml), [FM.LayoutNameForLayoutID](https://www.mbsplugins.eu/FMLayoutNameForLayoutID.shtml) and [FM.LayoutNames](https://www.mbsplugins.eu/FMLayoutNames.shtml) matching similar functions for scripts.

### Blog Entries

- [News about the MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-19/News_about_the_MBS_FileMaker_P/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.2pr3](https://www.mbsplugins.de/archive/2020-04-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 8th April 2020 , last changed 8th April 2020

  
[FM.LayoutIDForLayoutName](FMLayoutIDForLayoutName.md) - [FM.LayoutNames](FMLayoutNames.md)

[HTML Version](FMLayoutNameForLayoutID.shtml)