Message.hide()

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Hides the message.

Returns

void

Supported Script Types

Client scripts

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

Governance

None

Module

N/ui/message Module

Since

2016.1

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 2", 
        message: "My Message 2", 
        type: message.Type.INFORMATION
    });
    myMsg.show();
    setTimeout(myMsg.hide(), 15000); // hide the message after 15s
    ...
       //Add additional code 

          

Related Topics

message.Message
N/ui/message Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices