Modules

filter

 

Objects/Functions

module (N/ui/message)

SuiteScript 2.0

message.Type

message.Type.{|CONFIRMATION,INFORMATION,WARNING,ERROR|}

N/ui/message Module
message.Type
Enum Description: Indicates the type of message to display, which specifies the background color of the message and other message indicators. 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.0 Client Script Type.
Module: N/ui/message Module
Since: 2016.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=message.Type

Example:

// Code Example 1
//Add additional code
...
var myMsg = message.create({
title: "My Title",
message: "My Message",
type: message.Type.CONFIRMATION
});
myMsg.show();
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4498688050.html