message.Type
JavaScript does not include an enumeration type. The SuiteScript 2.x documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.
Enum Description |
Indicates the type of message to create, which specifies the background color of the message and other message indicators when the message is displayed. Use this enum to set the value of the |
Module |
|
Sibling Module Members |
|
Since |
2016.1 |
Values
Value |
Display characteristcs |
---|---|
|
A green background with a checkmark icon. ![]() |
|
A blue background with an Information icon. ![]() |
|
A yellow background with a Warning icon. ![]() |
|
A red background with an X icon. ![]() |
Syntax
The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see N/ui/message Module Script Sample.
//Add additional code
...
var myMsg = message.create({
title: "My Title",
message: "My Message",
type: message.Type.CONFIRMATION
});
myMsg.show();
...
//Add additional code