Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    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

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

Dialog.SetButtons   -   Dialog.SetFieldText

Feedback: Report problem or ask question.

MBS FileMaker blog