WebView.GetForm
---------------

Returns the name of the form with the given index.

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

MBS( "WebView.GetForm"; WebViewerRef; Index ) 

**MBS**( **"WebView.GetForm";** /\* Returns the name of the form with the given index. \*/  
**$WebViewerRef**; /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. \*/   
**$Index**) /\* The index of the form to query.  
From 0 to [WebView.GetFormCount](WebViewGetFormCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. |  |
| Index | The index of the form to query.   From 0 to [WebView.GetFormCount](WebViewGetFormCount.md)-1. | 0 |

### Result

The name of the form or an empty string.

### Description

Returns the name of the form with the given index.  
### See also

- [WebView.FindByName](WebViewFindByName.md)
- [WebView.GetFormattedText](WebViewGetFormattedText.md)
- [WebView.GetFormCount](WebViewGetFormCount.md)
- [WebView.GetFormValue](WebViewGetFormValue.md)
- [WebView.GetHTMLText](WebViewGetHTMLText.md)
- [WebView.GetIcon](WebViewGetIcon.md)
- [WebView.GetSource](WebViewGetSource.md)
- [WebView.GetURL](WebViewGetURL.md)
- [WebView.SetFocus](WebViewSetFocus.md)
- [WebView.SetZoom](WebViewSetZoom.md)

### Release notes

- **Version 15.5**
    - Implemented [WebView.GetFormattedText](https://www.mbsplugins.eu/WebViewGetFormattedText.shtml) for Windows using [Text.HTMLtoStyledText](https://www.mbsplugins.eu/TextHTMLtoStyledText.shtml) internally.
- **Version 10.1**
    - Added handing of Strikethrough text attribute for styled text conversion from NSAttributedString to FileMaker. Affects [WebView.GetFormattedText](https://www.mbsplugins.eu/WebViewGetFormattedText.shtml), [Clipboard.GetStyledText](https://www.mbsplugins.eu/ClipboardGetStyledText.shtml), [RichText.FormattedText](https://www.mbsplugins.eu/RichTextFormattedText.shtml) and other functions.
- **Version 8.2**
    - Implemented [WebView.GetFormattedText](http://www.mbsplugins.eu/WebViewGetFormattedText.shtml), [WebView.CopyFormattedText](http://www.mbsplugins.eu/WebViewCopyFormattedText.shtml) and [RichText.ReadWebviewer](http://www.mbsplugins.eu/RichTextReadWebviewer.shtml) for iOS and FileMaker 16.

This function checks for a license.

Created 18th August 2014 , last changed 23th February 2018

  
[WebView.GetEditable](WebViewGetEditable.md) - [WebView.GetFormButtonValue](WebViewGetFormButtonValue.md)

[HTML Version](WebViewGetForm.shtml)