# Menu selection references

Menu selection references can be used in formulas to access the selected entry of a menu widget.

Syntax:

<mark style="color:blue;">#page.widget!selection</mark>

with

* <mark style="color:blue;">page</mark> - Name of the page containing the menu widget *- optional*
* <mark style="color:blue;">widget</mark> - Name of the referenced menu widget
* <mark style="color:blue;">!selection</mark> - Appendix, to access the selected menu entry

#### Remark

* If the !selection appendix is specified, the reference returns the currently selected menu entry. This applies to menus and hierarchy menus.
* The !selection appendix is automatically added to a menu widget reference if you click on the menu widget while holding down the CTRL key. Multiple clicks then switch between the reference with and without the appendix.

#### Examples

* <mark style="color:blue;">menu1!selection</mark> - returns the currently selected entry of the menu1 widget in the current page
* <mark style="color:blue;">#page1.menu1!selection</mark> - returns the currently selected entry of the menu1 widget in the page page1


---

# 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.nedyx.com/nedyx/clearlines-functions/general-aspects/menu-selection-references.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.
