# OPENSEARCH

Use variables, on-load, and on-data-change scripts to open the Search interface without requiring access to the toolbar.

#### Syntax <a href="#syntax" id="syntax"></a>

```javascript
OPENSEARCH()
```

#### Example <a href="#example" id="example"></a>

Create a button variable to call the OPENSEARCH function.

<figure><img src="/files/FepCcD5j5LRvWDRvMAOD" alt=""><figcaption><p>Calling the OPENSEARCH function in a button variable</p></figcaption></figure>

Users can click the Search button variable and do not need access to the toolbar to search their data.

<figure><img src="/files/FepCcD5j5LRvWDRvMAOD" alt=""><figcaption><p>OPENSEARCH</p></figcaption></figure>


---

# 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://docs.fabricplan.com/planning-sheets/formula-syntax/scripting-functions/opensearch.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.
