Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Select.getValue
Stay organized with collections
Save and categorize content based on your preferences.
Returns the currently selected value.
Usage | Returns | Select.getValue() | String |
Argument | Type | Details | this: ui.select | ui.Select | The ui.Select instance. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eSelect.getValue()\u003c/code\u003e returns the currently selected value as a string from a \u003ccode\u003eui.Select\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThis method takes one argument, the \u003ccode\u003eui.Select\u003c/code\u003e instance itself, and is used to retrieve the user's selection.\u003c/p\u003e\n"]]],["The `Select.getValue()` method retrieves the currently selected value from a `ui.Select` instance. It takes the `ui.Select` instance as an argument (referred to as `this`) and returns the selected value as a String. No other arguments are required. The method provides a way to programmatically access the user's choice from the select element.\n"],null,["# ui.Select.getValue\n\n\u003cbr /\u003e\n\nReturns the currently selected value.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------|---------|\n| Select.getValue`()` | String |\n\n| Argument | Type | Details |\n|-------------------|-----------|-------------------------|\n| this: `ui.select` | ui.Select | The ui.Select instance. |"]]