# 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
