ListDialog.SetPrompt
--------------------

Sets prompt text.

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

MBS( "ListDialog.SetPrompt"; Text ) 

**MBS**( **"ListDialog.SetPrompt";** /\* Sets prompt text. \*/  
**$Text**) /\* The new text.e.g. "Please select an item:" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The new text. | "Please select an item:" |

### Result

Returns OK.

### Description

Sets prompt text.  
This text is shown on the top of the dialog over the listbox.  
### Examples

Sets label:

 MBS ( "ListDialog.SetPrompt"; "Bitte einen Namen wählen:" )  
### See also

- [FileDialog.GetPrompt](FileDialogGetPrompt.md)
- [FileDialog.SetPrompt](FileDialogSetPrompt.md)
- [List.HasValue](ListHasValue.md)
- [ListDialog.AddItemsToList](ListDialogAddItemsToList.md)
- [ListDialog.GetPrompt](ListDialogGetPrompt.md)
- [ListDialog.SetHeight](ListDialogSetHeight.md)
- [ListDialog.ShowDialog](ListDialogShowDialog.md)
- [SyntaxColoring.AddContextMenuCommand](SyntaxColoringAddContextMenuCommand.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_)
- [SmartCard/Belgian EID Reader](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SmartCard/Belgian%20EID%20Reader.shtml#6ScriptAnchor_)
- [Win Only/Snippets for Windows](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Snippets%20for%20Windows.shtml#11ScriptAnchor_)

### Blog Entries

- [ListDialog for iOS](https://www.mbsplugins.de/archive/2025-08-18/ListDialog_for_iOS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Advent calendar - Door 10 - Reading The Wish List](https://www.mbsplugins.de/archive/2024-12-10/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Advent calendar: 22 - ListDialog](https://www.mbsplugins.de/archive/2023-12-22/MBS_Plugin_Advent_calendar_22_/monkeybreadsoftware_blog_filemaker)
- [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)

This function is free to use.

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

  
[ListDialog.SetPositionY](ListDialogSetPositionY.md) - [ListDialog.SetSelectButtonLabel](ListDialogSetSelectButtonLabel.md)

[HTML Version](ListDialogSetPrompt.shtml)