ListDialog.SetSelectButtonValue
-------------------------------

Sets the value returned by ShowDialog function if the select button was clicked.

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

MBS( "ListDialog.SetSelectButtonValue"; Value ) 

**MBS**( **"ListDialog.SetSelectButtonValue";** /\* Sets the value returned by ShowDialog function if the select button was clicked. \*/  
**$Value**) /\* The new value to use.e.g. "Select" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new value to use. | "Select" |

### Result

Returns OK or error.

### Description

Sets the value returned by ShowDialog function if the select button was clicked.  
The default is "OK".  
### Examples

Set button values:

 Set Variable \[ $r ; Value: MBS ("[ListDialog.SetOtherButtonValue](ListDialogSetOtherButtonValue.md)"; "Other"; 0) \]  
Set Variable \[ $r ; Value: MBS ("ListDialog.SetSelectButtonValue"; "Selected") \]  
Set Variable \[ $r ; Value: MBS ("[ListDialog.SetCancelButtonValue](ListDialogSetCancelButtonValue.md)"; "Cancelled") \]  
### See also

- [Dialog.SetOtherButton](DialogSetOtherButton.md)
- [ListDialog.GetCancelButtonValue](ListDialogGetCancelButtonValue.md)
- [ListDialog.GetOtherButtonValue](ListDialogGetOtherButtonValue.md)
- [ListDialog.GetSelectButtonLabel](ListDialogGetSelectButtonLabel.md)
- [ListDialog.GetSelectButtonValue](ListDialogGetSelectButtonValue.md)
- [ListDialog.SetCancelButtonLabel](ListDialogSetCancelButtonLabel.md)
- [ListDialog.SetOtherButtonEvaluate](ListDialogSetOtherButtonEvaluate.md)
- [ListDialog.SetOtherButtonValue](ListDialogSetOtherButtonValue.md)
- [ListDialog.SetSelectButtonLabel](ListDialogSetSelectButtonLabel.md)
- [ListDialog.ShowDialog](ListDialogShowDialog.md)

### Release notes

- **Version 15.2**
    - Added [ListDialog.SetCancelButtonValue](https://www.mbsplugins.eu/ListDialogSetCancelButtonValue.shtml), [ListDialog.SetOtherButtonValue](https://www.mbsplugins.eu/ListDialogSetOtherButtonValue.shtml) and [ListDialog.SetSelectButtonValue](https://www.mbsplugins.eu/ListDialogSetSelectButtonValue.shtml) to set what value is returned by [ListDialog.ShowDialog](https://www.mbsplugins.eu/ListDialogShowDialog.shtml) function.

### Blog Entries

- [News in MBS FileMaker Plugin 15.2](https://www.mbsplugins.de/archive/2025-05-13/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.2pr2](https://www.mbsplugins.de/archive/2025-04-07/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 6th April 2025 , last changed 6th April 2025

  
[ListDialog.SetSelectButtonLabel](ListDialogSetSelectButtonLabel.md) - [ListDialog.SetSelectedTag](ListDialogSetSelectedTag.md)

[HTML Version](ListDialogSetSelectButtonValue.shtml)