Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Searches text in a webviewer.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 2.3 Yes Yes No No No
MBS( "WebView.SearchText"; WebViewerRef; Text { ; Backward; CaseSensitive; Wrap } )   More


Parameter Description Example value
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. "web"
Text The text to search for. "Hello"
Backward Optional
A boolean value to determinate direction. Pass 0 for forward and 1 for backward. Default is 0. (This option has problems on Windows currently.)
CaseSensitive Optional
Whether to search case sensitive. Pass 1 for case sensitive and 0 for case insensitive. Default is 0.
Wrap Optional
A boolean value to decide whether to wrap around. If text is not found, we start search on the top again.


Returns 1 if the text was found and 0 if not.


Searches text in a webviewer.
This is like the search field in Safari. Please note that this feature works fine in FileMaker 10, but has problems in FileMaker 11.

Not supported for WebKit 2.x (FileMaker 16 Mac), but works in FileMaker 16, when using a Web Viewer created using WebView.Create.


Searches for text in webviewer:

MBS("WebView.SearchText"; "web"; "Hello")

See also

Example Databases

Blog Entries

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

WebView.Scrollbar.set   -   WebView.SelectAll

Feedback: Report problem or ask question.

MBS Xojo Plugins