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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
WebView.SetCustomUserAgent
Sets the custom user agent text.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| WebView | 2.9 | Yes | No | No | No | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| 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" |
Result
Returns OK or error.
Description
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.
Examples
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" )
Set custom user agent to be Safari 13.1:
MBS( "WebView.SetCustomUserAgent"; "web"; "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15" )
Set custom user agent to be Chrom 83:
MBS( "WebView.SetCustomUserAgent"; "web"; "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36" )
See also
Example Databases
Blog Entries
- Neues MBS FileMaker Plugin 9.3 - Über 5900 Funktionen in einem Plugin
- MBS FileMaker Plugin 9.3 - More than 5900 Functions In One Plugin
- MBS FileMaker Plugin, version 9.3pr6
- MBS Filemaker Plugin, version 2.9pr7
Release notes
- Version 9.3
- Added iOS support for WebView.SetCustomUserAgent function.
Created 18th August 2014, last changed 28th May 2020
WebView.SetAutoResizingMask - WebView.SetEditable
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins