Dialog.SetOtherButton
---------------------

Sets the title for the other button.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Dialog](component_Dialog.md) | [4.1](newinversion41.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Dialog.SetOtherButton"; Text { ; NoCancel } ) 

**MBS**( **"Dialog.SetOtherButton";** /\* Sets the title for the other button. \*/  
**$Text**; /\* The title for the other button.e.g. "Cancel" \*/   
**$NoCancel**) /\* Optional; Whether to not allow a cancel button.  
Pass 1 to have no cancel button, so esc key will not close dialog.  
Default value here is 0 for allowing cancel.  
(Windows only)e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Text | The title for the other button. | "Cancel" |  |
| NoCancel | Whether to not allow a cancel button.   Pass 1 to have no cancel button, so esc key will not close dialog.   Default value here is 0 for allowing cancel.   (Windows only) | 0 | Optional |

### Result

Returns OK or error.

### Description

Sets the title for the other button.  
### See also

- [Dialog.GetButtonPressed](DialogGetButtonPressed.md)
- [Dialog.GetOtherButton](DialogGetOtherButton.md)
- [Dialog.Run](DialogRun.md)
- [Dialog.SetButton](DialogSetButton.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.
    - Added [ListDialog.SetOtherButtonNeedsSelection](https://www.mbsplugins.eu/ListDialogSetOtherButtonNeedsSelection.shtml) and [ListDialog.GetOtherButtonNeedsSelection](https://www.mbsplugins.eu/ListDialogGetOtherButtonNeedsSelection.shtml) functions.
    - Improved [ListDialog.SetOtherButtonEvaluate](https://www.mbsplugins.eu/ListDialogSetOtherButtonEvaluate.shtml) and [ListDialog.SetOtherButtonLabel](https://www.mbsplugins.eu/ListDialogSetOtherButtonLabel.shtml) to allow three other buttons.
- **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.
- **Version 9.5**
    - Added other button for ListDialog with [ListDialog.GetOtherButtonEvaluate](http://www.mbsplugins.eu/ListDialogGetOtherButtonEvaluate.shtml), [ListDialog.GetOtherButtonLabel](http://www.mbsplugins.eu/ListDialogGetOtherButtonLabel.shtml), [ListDialog.SetOtherButtonEvaluate](http://www.mbsplugins.eu/ListDialogSetOtherButtonEvaluate.shtml) and [ListDialog.SetOtherButtonLabel](http://www.mbsplugins.eu/ListDialogSetOtherButtonLabel.shtml) functions.

### Example Databases

- [Window/Dialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/Dialog.shtml#1ScriptAnchor_)

### Blog Entries

- [Dialogs with fields for Windows](https://www.mbsplugins.de/archive/2026-02-25/Dialogs_with_fields_for_Window/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 6th April 2016

  
[Dialog.SetMode](DialogSetMode.md) - [Dialog.SetSheetEvaluate](DialogSetSheetEvaluate.md)

[HTML Version](DialogSetOtherButton.shtml)