Modules

filter

 

Objects/Functions

module (N/ui/message)

SuiteScript 2.0

message.create(options)

{message}.create({type: {message.Type*},title: {string},message: {string},duration: {int|string}})

N/ui/message Module
message.create()
Method Description: Creates a message that can be displayed or hidden near the top of the page.
Returns: message.Message.
Supported Script Types: Client scripts For more information, see SuiteScript 2.0 Client Script Type.
Governance: None
Module: N/ui/message Module
Since: 2016.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=message.create(options)

Example:

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

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