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.

For code samples using the N/ui/dialog module, see N/ui/dialog Module Script Samples.

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

SuiteScript 2.x Modules
SuiteScript 2.x
SuiteScript Versioning Guidelines
SuiteScript 2.1

General Notices