Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Dialog.SetDefaultButton
Sets the title for the default button.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Dialog | 4.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "Dialog.SetDefaultButton"; text { ; NoDefault } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
text | The new default button text. | "OK" | |
NoDefault | Whether to not have a default button. Pass 1 to have no default button, so return key will not close dialog. Default value here is 0 for allowing enter. (Mac only) |
0 | Optional |
Result
Returns OK or error.
Description
Sets the title for the default button.When an empty string, a default localized button title ("OK” in English) is used.
See also
Example Databases
Blog Entries
- Goodies 33: Custom context menu commands for FileMaker ScriptWorkspace
- MBS Plugin Advent calendar: 17 - Dialog
- Add a search and replace command for FileMaker Script Workspace
- MBS FileMaker Plugin 6.2 for OS X/Windows
This function is free to use.
Created 18th August 2014, last changed 27th October 2017