Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  


Searches text in a webviewer.

Component: WebView
Version: 2.3
Mac OS X: Yes
Windows: Yes
Server: No
FileMaker Cloud: No

MBS( "WebView.SearchText"; WebViewerRef; Text { ; Backward; CaseSensitive; Wrap } )


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).


Searches for text in webviewer:

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

See also

WebView.Screenshot   -   WebView.SetCustomUserAgent

Feedback: Report problem or ask question.

MBS REAL studio tutorial videos - Förderverein St. Arnulf Nickenich