message.Type

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.

Note:

JavaScript does not include an enumeration type. The SuiteScript 2.0 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.

Supported Script Types

Client scripts

For more information, see SuiteScript 2.x Client Script Type.

Module

N/ui/message Module

Since

2016.1

Values

Value

Display characteristcs

CONFIRMATION

A green background with a checkmark icon.

This is an image of a Confirmation message.

INFORMATION

A blue background with an Information icon.

This is an image of an Information message.

WARNING

A yellow background with a Warning icon.

This is an image of a Warning message.

ERROR

A red background with an X icon.

This is an image of an Error message.

Syntax

Important:

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 

          

Related Topics

General Notices