ListDialog.GetSelectedTag
-------------------------

Queries the selected tag.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ListDialog](component_ListDialog.md) | [4.2](newinversion42.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "ListDialog.GetSelectedTag" ) ### Parameters

none

### Result

Returns text.

### Description

Queries the selected tag.  
The tag allows you to store anything with the list like a record ID.  
Text is empty if nothing is selected.  
This can be a list if used with multiple selection.  
### See also

- [List.HasValue](ListHasValue.md)
- [ListDialog.GetCheckedTags](ListDialogGetCheckedTags.md)
- [ListDialog.GetSelectedTitle](ListDialogGetSelectedTitle.md)
- [ListDialog.SetSelectedTag](ListDialogSetSelectedTag.md)
- [ListDialog.SetSelectedTitle](ListDialogSetSelectedTitle.md)
- [ListDialog.ShowDialog](ListDialogShowDialog.md)
- [SyntaxColoring.AddContextMenuCommand](SyntaxColoringAddContextMenuCommand.md)

### Release notes

- **Version 13.2**
    - Changed [ListDialog.SetOtherButtonEvaluate](https://www.mbsplugins.eu/ListDialogSetOtherButtonEvaluate.shtml) to query selection, so you can query it using [ListDialog.GetSelectedTag](https://www.mbsplugins.eu/ListDialogGetSelectedTag.shtml) and [ListDialog.GetSelectedTitle](https://www.mbsplugins.eu/ListDialogGetSelectedTitle.shtml) in your expression.

### Example Databases

- [List/ListDialog Grouping](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/List/ListDialog%20Grouping.shtml#1ScriptAnchor_)
- [List/ListDialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/List/ListDialog.shtml#1ScriptAnchor_)
- [Win Only/Snippets for Windows](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Snippets%20for%20Windows.shtml#11ScriptAnchor_)

### Blog Entries

- [MBS Plugin Advent calendar: 22 - ListDialog](https://www.mbsplugins.de/archive/2023-12-22/MBS_Plugin_Advent_calendar_22_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.2pr3](https://www.mbsplugins.de/archive/2023-04-20/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[ListDialog.GetSelectButtonValue](ListDialogGetSelectButtonValue.md) - [ListDialog.GetSelectedTitle](ListDialogGetSelectedTitle.md)

[HTML Version](ListDialogGetSelectedTag.shtml)