Modules

filter

 

Objects/Functions

module (N/ui/message)

SuiteScript 2.0

Message.hide()

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Message.hide() for more information.

N/ui/message Module
Message.hide()
Method Description: Hides the message.
Returns: void
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.hide()

Example:

// Code Example 1
//Add additional code
...
var myMsg = message.create({
title: "My Title 2",
message: "My Message 2",
type: message.Type.INFORMATION
});
myMsg.show();
setTimeout(myMsg.hide(), 15000); // hide the message after 15s
//...
//Add additional code

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