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  


Queries whether other file types are allowed.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FileDialog 4.3 Yes Yes No No No
MBS( "FileDialog.SetFilter"; MacFilter; WinFilter; WinLabels )   More


Parameter Description Example value
MacFilter The filter specification for Mac. Can be file extension (Without dot) or UTI (Uniform Type Identifier). Can be a list. "jpg"
WinFilter The filter specification for Windows. This is normally star dot file extension and can be a list. "*.JPG"
WinLabels The list of labels for the file types. "JPEG files"


Returns OK or error.


Queries whether other file types are allowed.
Mac filter works in FileMaker 12 or newer, but seems not to work in FileMaker 11.

If you like to select any file, please don't define a filter at all.


Set Mac filter with file extension as filter

MBS("FileDialog.SetFilter"; "jpg"; "*.JPG"; "JPEG files")

Set Mac filter with UTI as filter:

MBS("FileDialog.SetFilter"; "public.jpeg"; "*.JPG"; "JPEG files")

Select only FileMaker files:

MBS("FileDialog.SetFilter"; "fmp12"; "*.FMP12"; "FileMaker files")

Select tiff or jpeg files with various extensions:

MBS("FileDialog.SetFilter"; "tif¶jpg¶jpeg¶tiff"; "*.TIF;*.TIFF¶*.JPG;*.JPEG"; "Tiff files¶JPEG files")

Allow PNG and JPEG:

MBS("FileDialog.SetFilter"; "jpg¶png"; "*.JPG¶*.PNG"; "JPEG files¶PNG Files")

Allow text files:

MBS("FileDialog.SetFilter"; "public.text"; "*.TXT"; "TXT files")

See also

Example Databases

Blog Entries

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

FileDialog.SetCanSelectHiddenExtension   -   FileDialog.SetInitialDirectory

Feedback: Report problem or ask question.

MBS Xojo tutorial videos