Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Calls a JavaScript function.

Component Version macOS Windows Linux Server iOS SDK
WebView 10.0 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "WebView.CallFunction"; WebViewerRef; FunctionName { ; Parameters... } )   More


Parameter Description Example Flags
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function.
FunctionName The function name. "test"
Parameters... Pass as many parameters as needed. "Hello" Optional


Returns OK or error.


Calls a JavaScript function.
Returns result as text or number.
You can pass as many parameters as needed.

Added iOS and macOS support for version 11.5.

This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Parameters parameter as often as you need.


Call with 2 parameters:

MBS( "Webview.CallFunction"; "web"; "test"; "Hello"; "World")

See also

Release notes

Blog Entries

This function checks for a license.

Created 4th January 2020, last changed 28th September 2021

WebView.AllowsAnyHTTPSCertificateForHost - WebView.CanResetPageZoom