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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  


Sets the URL to query when menuitem is used.

Component Version macOS Windows Linux Server iOS SDK
Menu 6.5 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "MenuItem.SetURL"; item; URL )   More


Parameter Description Example
item The reference to the menu item. Please create one with MenuItem.CreateMenuItem or MenuItem.CreateSeparator. $item
URL The URL to trigger.


Returns OK or error.


Sets the URL to query when menuitem is used.
$$ID$$ in the URL is replaced with menu ID.
Queries http/ftp/sftp URLs with CURL, other URLs passed to OS to open.


Create menu to open email application:

Set Variable [$item; Value:MBS("MenuItem.CreateMenuItem"; "Send Email to Support")]
Set Variable [$r; Value:MBS("MenuItem.SetURL"; $item; "mailto:support@monkeybreadsoftware.test")]
Set Variable [$r; Value:MBS("Menu.AddItem"; $menu; $item)]

See also

Blog Entries

FileMaker Magazin

Created 11st October 2016, last changed 15th October 2016

MenuItem.SetToolTip - MenuItem.SetUnderline

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins

Start Chat