WebView.Passwords.Set
---------------------

Stores a password for later.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebView](component_WebView.md) | [6.3](newinversion63.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "WebView.Passwords.Set"; Host; Name; Password { ; Persistence } ) 

**MBS**( **"WebView.Passwords.Set";** /\* Stores a password for later. \*/  
**$Host**; /\* The host name.e.g. "monkeybreadsoftware.com" \*/   
**$Name**; /\* The user name.e.g. "admin" \*/   
**$Password**; /\* The password to use.e.g. "890245456" \*/   
**$Persistence**) /\* Optional; Defines the persitance of the password.  
Can be Permanent, ForSession, Synchronizable or None.  
Default is none.e.g. "None" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Host | The host name. | "monkeybreadsoftware.com" |  |
| Name | The user name. | "admin" |  |
| Password | The password to use. | "890245456" |  |
| Persistence | Defines the persitance of the password.   Can be Permanent, ForSession, Synchronizable or None.   Default is none. | "None" | Optional |

### Result

Returns OK or error.

### Description

Stores a password for later.  
The password is saved and when a website with right host name asks for it, the plugin will tell the WebViewer about it.  
### Examples

Set password and open webpage asking for it:

 Set Variable \[$r ; Value:MBS ("[WebView.Passwords.Install](WebViewPasswordsInstall.md)"; "web")\]  
Set Variable \[$r ; Value:MBS ("WebView.Passwords.Set"; "192.168 .2.103 "; "admin"; "webcam123")\]  
Set Web Viewer \[Object Name: "web"; URL: "http://192.168 .2.103 /main.htm"\]  
### See also

- [WebView.Passwords.Clear](WebViewPasswordsClear.md)
- [WebView.Passwords.Install](WebViewPasswordsInstall.md)

### Example Databases

- [WebViewer/Web Password](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/Web%20Password.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin 6.3 for OS X/Windows](https://www.mbsplugins.de/archive/2016-07-12/MBS_FileMaker_Plugin_63_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.3pr4](https://www.mbsplugins.de/archive/2016-06-24/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 24th June 2016 , last changed 4th March 2023

  
[WebView.Passwords.Install](WebViewPasswordsInstall.md) - [WebView.Paste](WebViewPaste.md)

[HTML Version](WebViewPasswordsSet.shtml)