# select

### Description

This method can programmatically populate a \<select> element with \<option> elements based on a specified category. An optional can also be passed, appearing as the first \<option> element. Otherwise, the default placeholder will be used 'Choose an Option'.

The first parameter should be the CSS Selector for the \<select> element (e.g. #chooseCountry), followed by the category of options (e.g. all-countries) you would like to use and lastly, an optional placeholder if you'd like to override the default one (e.g. Choose a Country).

The available categories are specified on this page [here](/geoflow-docs/feature/form/auto-populate-select-fields.md).

### Parameters

```vbnet
elementIdentifier (string), category (string), placeholder (string, optional)
```

### Using This Method

```javascript
geoflow.select('#choose-country', 'all-countries', 'Choose a Country');
```

### Output

```javascript
true (boolean)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.getgeoflow.com/geoflow-docs/advanced/methods/select.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
