ListDialog.SetSelectedTitle
---------------------------

Sets which item is selected.

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

MBS( "ListDialog.SetSelectedTitle"; Text ) 

**MBS**( **"ListDialog.SetSelectedTitle";** /\* Sets which item is selected. \*/  
**$Text**) /\* The text to select.e.g. "Hello World" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The text to select. | "Hello World" |

### Result

Returns OK.

### Description

Sets which item is selected.  
You can preselect one or more items using this function.  
This can be a list if used with multiple selection.  
### Examples

Define to pick an item from the list by default via title:

 MBS ( "ListDialog.SetSelectedTitle"; "Hello World" )  
### See also

- [List.HasValue](ListHasValue.md)
- [ListDialog.GetCheckedTitles](ListDialogGetCheckedTitles.md)
- [ListDialog.GetSelectedTag](ListDialogGetSelectedTag.md)
- [ListDialog.GetSelectedTitle](ListDialogGetSelectedTitle.md)
- [ListDialog.SetSelectedTag](ListDialogSetSelectedTag.md)
- [ListDialog.ShowDialog](ListDialogShowDialog.md)

### 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_)
- [Mac and iOS/PDFKit/PDFKit Print Documents](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/PDFKit%20Print%20Documents.shtml#3ScriptAnchor_)

### Blog Entries

- [New functions of the MBS Plugin Version 9.5](https://www.mbsplugins.de/archive/2019-11-21/New_functions_of_the_MBS_Plugi/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.4pr3](https://www.mbsplugins.de/archive/2016-08-08/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[ListDialog.SetSelectedTag](ListDialogSetSelectedTag.md) - [ListDialog.SetShowCheckboxes](ListDialogSetShowCheckboxes.md)

[HTML Version](ListDialogSetSelectedTitle.shtml)