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: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  


Sets the custom user agent text.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 2.9 Yes No No No No
MBS( "WebView.SetCustomUserAgent"; WebViewerRef; UserAgent )   More


Parameter Description Example value
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. "web"
UserAgent The new useragent. "FileMaker Browser"


Returns OK or error.


Sets the custom user agent text.
This user agent is reported to websites. By using a different user agent string you can tell a website that FileMaker is using Firefox, Chrome or Internet Explorer instead of Safari (WebKit).

Add iOS with version 9.3.


Set custom user agent to be Internet Explorer 7:

MBS( "WebView.SetCustomUserAgent"; "web"; "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)" )

Set custom user agent to be Firefox 15:

MBS( "WebView.SetCustomUserAgent"; "web"; "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20100101 Firefox/15.0.1" )

See also

Example Databases

Blog Entries

Release notes

Created 18th August 2014, last changed 15th July 2019

WebView.SetAutoResizingMask   -   WebView.SetEditable

Feedback: Report problem or ask question.

MBS FileMaker tutorial videos