> For the complete documentation index, see [llms.txt](https://docs.rootcause.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rootcause.ai/more-details/applications/application-modules/onpanelevent.md).

# On panel event

> Start a flow when a widget emits click, change, submit, rowSelect, pageOpen or pageClose.

Starts a flow when a widget on the dashboard is used.

`widgetId` names the widget and `event` the interaction — click, change, submit, rowSelect, pageOpen or pageClose. A `change` feeding a durable flow needs `debounceS` of at least 1, or every keystroke is a run.

## At a glance

|                          |                       |
| ------------------------ | --------------------- |
| Module type              | `OnPanelEvent`        |
| Category                 | Events                |
| Default tier             | `reactive`            |
| Runs on                  | `reactive`, `durable` |
| Starts a flow            | yes                   |
| Holds a body             | no                    |
| Keeps state between runs | no                    |
| Available in             | `dashboard`           |

## Parameters

### `event`

`"click" | "change" | "submit" | "rowSelect" | "pageOpen" | "pageClose"` · required · defaults to `"click"`

Which interaction: click, change, submit, rowSelect, pageOpen or pageClose.

### `debounceS`

`number` · required · defaults to `0`

Seconds to wait before firing. A `change` event feeding a durable flow needs at least 1, or every keystroke starts a run.

### `widgetId`

`string` · required · defaults to `""`

The widget on the dashboard whose interaction starts the flow.

## Inputs

*None.*

## Outputs

| Port    | Kind    | Connects to     | Description                                                  |
| ------- | ------- | --------------- | ------------------------------------------------------------ |
| `event` | `event` | `event`, `json` | The event envelope, with the widget's values in its payload. |

***

[← All application modules](/more-details/applications/application-modules.md)
