WebView.Paste
-------------

Pastes text from clipboard.

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

MBS( "WebView.Paste"; WebViewerRef ) 

**MBS**( **"WebView.Paste";** /\* Pastes text from clipboard. \*/  
**$WebViewerRef**) /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. |  |

### Result

Returns OK or error.

### Description

Pastes text from clipboard.  
This is like choosing the menu command to paste, but without using the menu.  
You need to have focus on an element to accept the paste, e.g. an input text field.  
  
Browser engines may limit the access to clipboard and deny it.  
### Examples

Paste content of clipboard to web viewer:

 Set Variable \[ $r ; Value: MBS ("WebView.Paste"; "web") \]  
### See also

- [TextView.Paste](TextViewPaste.md)
- [WebView.FindByName](WebViewFindByName.md)
- [WebView.List](WebViewList.md)

### Release notes

- **Version 7.4**
    - Added [WebView.ClearSelection](http://www.mbsplugins.eu/WebViewClearSelection.shtml), [WebView.Copy](http://www.mbsplugins.eu/WebViewCopy.shtml), [WebView.Cut](http://www.mbsplugins.eu/WebViewCut.shtml), [WebView.Paste](http://www.mbsplugins.eu/WebViewPaste.shtml) and [WebView.SelectAll](http://www.mbsplugins.eu/WebViewSelectAll.shtml).

### Example Databases

- [WebViewer/WebView Copy and Paste](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebView%20Copy%20and%20Paste.shtml#1Button11.0000000407.000000045.0000000513.0000000LayoutObjectAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 7.4pr2](https://www.mbsplugins.de/archive/2017-08-14/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st August 2017 , last changed 27th March 2024

  
[WebView.Passwords.Set](WebViewPasswordsSet.md) - [WebView.PostURL](WebViewPostURL.md)

[HTML Version](WebViewPaste.shtml)