alert
  • 30 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

alert

  • Dark
    Light
  • PDF

Article summary

Description

Displays a popup message to the user.


Input Parameters

NameTypeRequiredDescription
messageTextYesMessage to display
[title]TextNoTitle to display (above message)

Returns

No return value.


Examples

// display popup message to the user
user.alert("Please enter your age.");
// display popup message to the user (with custom title)
user.alert("Please enter your age.", "Oops!");

Remarks

Use this function when you need to display a message to the user that must be dismissed before they can continue.

Tip

The runtime also supports more useful native validation features, so you don't need to use this function normally for routine input validation.


What's Next