WebView.GetFormSelectValue
--------------------------

Gets the value of a select element, such as a list or a combo box or a menu.

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

MBS( "WebView.GetFormSelectValue"; WebViewerRef; FormNameOrIndex; FieldNameOrIndex { ; OnlyVisible } ) 

**MBS**( **"WebView.GetFormSelectValue";** /\* Gets the value of a select element, such as a list or a combo box or a menu. \*/  
**$WebViewerRef**; /\* Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. \*/   
**$FormNameOrIndex**; /\* Either the Name of the Form or the Index starting at 0 \*/   
**$FieldNameOrIndex**; /\* You can either pass the field name of the field indix. 0 is the first item \*/   
**$OnlyVisible**) /\* Optional; Whether to look for all fields or only the visible ones. Default is false.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "[WebView.FindByName](WebViewFindByName.md)" function. |  |  |
| FormNameOrIndex | Either the Name of the Form or the Index starting at 0 |  |  |
| FieldNameOrIndex | You can either pass the field name of the field indix. 0 is the first item |  |  |
| OnlyVisible | Whether to look for all fields or only the visible ones. Default is false. | 0 | Optional |

### Description

Gets the value of a select element, such as a list or a combo box or a menu.  
In HTML the Options of a Select tag can include a "value" attribute. If they do then this function gets the value of that attribute.  
### See also

- [WebView.FindByName](WebViewFindByName.md)
- [WebView.GetFormButtonValue](WebViewGetFormButtonValue.md)
- [WebView.GetFormInputValue](WebViewGetFormInputValue.md)
- [WebView.GetFormSelectOptions](WebViewGetFormSelectOptions.md)
- [WebView.GetFormTextAreaValue](WebViewGetFormTextAreaValue.md)
- [WebView.SetFormButtonValue](WebViewSetFormButtonValue.md)
- [WebView.SetFormInputValue](WebViewSetFormInputValue.md)
- [WebView.SetFormSelectValue](WebViewSetFormSelectValue.md)

### Example Databases

- [WebViewer/Form Fields/Formfield sample](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/Form%20Fields/Formfield%20sample.shtml#1GroupButton240.00000001050.0000000259.00000001165.0000000LayoutObjectAnchor_)

### Blog Entries

- [MBS Filemaker Plugin 2.1 prerelease 2](https://www.mbsplugins.de/archive/2010-05-11/MBS_Filemaker_Plugin_21_prerel/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[WebView.GetFormSelectOptions](WebViewGetFormSelectOptions.md) - [WebView.GetFormTextAreaValue](WebViewGetFormTextAreaValue.md)

[HTML Version](WebViewGetFormSelectValue.shtml)