# Getting a checkbox status from a menu

If your menu contains checkbox items, your app can determine whether they are currently checked or unchecked.

One way to do this is by querying the [Active Menus](/deskifier/deskifier-bubble.io-docs/menu-element/states.md#active-menus) state and inspecting the `items` array for the menu.

You can also detect checkbox changes by listening for the [Menu Item Clicked](/deskifier/deskifier-bubble.io-docs/menu-element/events.md#menu-item-clicked) event. When a checkbox item is checked, it will update the [Clicked Menu Checkbox Checked](/deskifier/deskifier-bubble.io-docs/menu-element/states.md#clicked-menu-checkbox-checked) state.&#x20;

<figure><img src="/files/GzKMOTymKHGLnQpdLWki" alt=""><figcaption></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://deskifier.gitbook.io/deskifier/deskifier-bubble.io-docs/guides-and-examples/getting-a-checkbox-status-from-a-menu.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.
