Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1    Statistic    FMM    Blog  


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 paid license.

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

WebView.AllowsAnyHTTPSCertificateForHost - WebView.CanResetPageZoom

💬 Ask a question or report a problem

Start Chat