N/ui/dialog Module

Use the N/ui/dialog module to create a modal dialog that persists until a button on the dialog is pressed.

Important:

SuiteScript does not support direct access to the NetSuite UI through the Document Object Model (DOM). The NetSuite UI should only be accessed using SuiteScript APIs.

                                   

In This Help Topic

N/ui/dialog Module Members

Member Type

Name

Property Type / Method Return Type

Supported Script Types

Description

Method

dialog.alert(options)

Promise

Client scripts

Creates an Alert dialog with an OK button.

dialog.confirm(options)

Promise

Client scripts

Creates a Confirm dialog with OK and Cancel buttons.

dialog.create(options)

Promise

Client scripts

Creates a dialog with specified buttons.

Related Topics

General Notices