> For the complete documentation index, see [llms.txt](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/popupwarning.md).

# popupWarning(title, event)

Raises a pop-up on screen that shows a warning

@status current Introduced in 2.2.0

## Parameters

* `title` (string) text to display
* `event` (number) the event variable that is passed in from the Run function (key pressed)

## Return value

* `"CANCEL"` user pushed EXIT key

### Notice

Use only from stand-alone and telemetry scripts.
