Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Sets the title for the default button.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Dialog 4.1 Yes Yes No No No
MBS( "Dialog.SetDefaultButton"; text { ; NoDefault } )   More


Parameter Description Example value
text The new default button text. "OK"
NoDefault Optional
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)


Returns OK or error.


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

Created 18th August 2014, last changed 27th October 2017

Dialog.SetButtons   -   Dialog.SetFieldText

Feedback: Report problem or ask question.

MBS Xojo Plugins