--- title: "system.vision.showWarning" description: "Displays a message to the user in a warning style popup dialog." --- # system.vision.showWarning > Displays a message to the user in a warning style popup dialog. :::info Backwards Compatibility This function replaces [system.gui.warningBox](versioned_docs/version-8.1/appendix/scripting-functions/system-gui/system-gui-warningBox.md). Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility. ::: This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.vision.showWarning(message, [title])` ### Parameters Type | Parameter | Description ------- | ------- | ------ String| `message` | The message to display in the warning. Will accept HTML formatting if the message parameter is encapsulated in an <html> tag. String| `title` | The title for the warning. [optional] ### Returns Nothing ### Scope Vision Client ## Code Examples ```python title="Example #1" # This code shows a yellow popup box similar to the system.gui.messageBox function. # Start the motor, or, warn the user if in wrong mode. runMode = event.source.parent.getPropertyValue('RunMode') # Cannot start the motor in mode #1 if runMode == 1: system.vision.showWarning("Cannot start the motor, current mode is VIEW MODE") else: system.db.runUpdateQuery("UPDATE MotorControl SET MotorRun=1") ```