To pop-up a dialog box with input fields using script.

 N/ui/dialog is basically a wrapper function on Ext.js, you can use the following to create a NS styled input box:

Ext.Msg.prompt('Test Alert', 'Enter Tracking number', function(btn, text) {
    if (btn == 'ok') {
        alert('you said ' + text);
    }
});

Leave a comment

Your email address will not be published. Required fields are marked *