ListDialog.SetOtherButtonValue
------------------------------

Sets the value returned by ShowDialog function if the other 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.SetOtherButtonValue"; Value { ; ButtonIndex } ) 

**MBS**( **"ListDialog.SetOtherButtonValue";** /\* Sets the value returned by ShowDialog function if the other button was clicked. \*/  
**$Value**; /\* The new value to use.e.g. "OtherButton" \*/   
**$ButtonIndex**) /\* Optional; The index for the other button from 0 to 2.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Value | The new value to use. | "OtherButton" |  |
| ButtonIndex | The index for the other button from 0 to 2. | 0 | Optional |

### Result

Returns OK or error.

### Description

Sets the value returned by ShowDialog function if the other button was clicked.  
The default is "Other".  
### See also

- [ListDialog.GetCancelButtonValue](ListDialogGetCancelButtonValue.md)
- [ListDialog.GetOtherButtonEvaluate](ListDialogGetOtherButtonEvaluate.md)
- [ListDialog.GetOtherButtonLabel](ListDialogGetOtherButtonLabel.md)
- [ListDialog.GetOtherButtonValue](ListDialogGetOtherButtonValue.md)
- [ListDialog.GetSelectButtonValue](ListDialogGetSelectButtonValue.md)
- [ListDialog.SetCancelButtonValue](ListDialogSetCancelButtonValue.md)
- [ListDialog.SetOtherButtonEvaluate](ListDialogSetOtherButtonEvaluate.md)
- [ListDialog.SetOtherButtonLabel](ListDialogSetOtherButtonLabel.md)
- [ListDialog.SetOtherButtonNeedsSelection](ListDialogSetOtherButtonNeedsSelection.md)
- [ListDialog.SetSelectButtonValue](ListDialogSetSelectButtonValue.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.SetOtherButtonNeedsSelection](ListDialogSetOtherButtonNeedsSelection.md) - [ListDialog.SetPosition](ListDialogSetPosition.md)

[HTML Version](ListDialogSetOtherButtonValue.shtml)