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.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1    Statistic  


Queries WebView preferences parameters.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 2.2 Yes No No No Yes
MBS( "WebView.GetPreferences"; WebViewerRef; ParameterName )   More


Parameter Description Example value
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. "web"
ParameterName The name of the parameter. isJavaEnabled


Returns a boolean value for allowsAnimatedImageLooping, allowsAnimatedImages, javaEnabled, javaScriptCanOpenWindowsAutomatically, javaScriptEnabled, loadsImagesAutomatically, plugInsEnabled, privateBrowsingEnabled, shouldPrintBackgrounds, tabsToLinks, userStyleSheetEnabled and usesPageCache; a number for cacheModel, defaultFixedFontSize, defaultFontSize, minimumFontSize or minimumLogicalFontSize; a string for cursiveFontFamily, defaultTextEncodingName, fantasyFontFamily, fixedFontFamily, sansSerifFontFamily, serifFontFamily or standardFontFamily.


Queries WebView preferences parameters.
For WebKit 1.x you can pass empty WebViewerRef to access global preferences.

Available keys for WebKit 1.x: allowsAnimatedImageLooping, allowsAnimatedImages, cacheModel, cursiveFontFamily, defaultFixedFontSize, defaultFontSize, defaultTextEncodingName, fantasyFontFamily, fixedFontFamily, javaEnabled, javaScriptCanOpenWindowsAutomatically, javaScriptEnabled, loadsImagesAutomatically, minimumFontSize, minimumLogicalFontSize, plugInsEnabled, privateBrowsingEnabled, sansSerifFontFamily, serifFontFamily, shouldPrintBackgrounds, standardFontFamily, tabsToLinks, userStyleSheetEnabled or usesPageCache.

Available keys for WebKit 2.x (FileMaker 16): developerExtrasEnabled, logsPageMessagesToSystemConsoleEnabled, minimumFontSize, javaScriptEnabled, javaScriptCanOpenWindowsAutomatically, allowFileAccessFromFileURLs, allowUniversalAccessFromFileURLs, telephoneNumberDetectionIsEnabled, javaEnabled and plugInsEnabled.

Please check WebKit documentation for details.


Queries setting for background printing:

MBS("WebView.GetPreferences"; "shouldPrintBackgrounds")

Query developer extras enabled state for webviewer:

Set Variable [$r; Value:MBS("WebView.GetPreferences"; "web"; "developerExtrasEnabled")]

Set developer extras enabled state for webviewer:

Set Variable [$r; Value:MBS("WebView.SetPreferences"; "web"; "developerExtrasEnabled"; 1)]

See also

Blog Entries

Created 18th August 2014, last changed 20th December 2017

WebView.GetPlainText   -   WebView.GetPrintParameter

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins