Message box

Description

Displays a Javascript alert box on the screen.

Basic Message box settings
Advanced message box settings

Used with the Grid, UX, AppLauncher, and Custom components

 Javascript used in 'OnPush' attribute:

alert('Sample Message');

 Message box Properties

Message box text
Specify the message box text. The message text must be in the form of a Javascript expression, which means that text must be enclosed in single quotes. For example: 'You are now logged on' This example shows a message that contains a variable: 'Your user name is:' + userName
Buttons
Specify the type of message box. If you select OK-Cancel, the user selection is stored in a variable. If the user clicks OK, the variable is true, else false. Choices include.
Variable name
Specify the name of the Javascript variable that will hold the result of the message box. If the user clicks OK, this variable will be set to true, else false.
Use advanced message box
Specify if message box should use the Alpha Five message box class, rather than the built-in Javascript alert() or confirm() functions. Using the Alpha Five message box class gives you a richer set of options.

 Advanced Message box Properties

Message box title
Message box title property.
Message box text
Message box text property.
Type
Specify the message box type. Options are: no buttons, ok, ok-cancel, yes-no, yes-no-cancel, or custom if you want to define a custom collection of buttons.
Buttons justification
Specify how the buttons should be justified. Choices include Default, Left, Center, Right.

 Custom Buttons Properties

Custom buttons
Custom buttons property.

 Javascript Properties

OK button
Specify the Javascript to run when the button is clicked.
Cancel button
Specify the Javascript to run when the button is clicked.
Yes button
Specify the Javascript to run when the button is clicked.
No button
Specify the Javascript to run when the button is clicked.

 Button Labels Properties

OK button
Specify the button label
Cancel button
Specify the button label
Yes button
Specify the button label
No button
Specify the button label

See Also