Years ago, we relied heavily on native window alerts and confirmation dialogs to inform users or gather input. For FYI messages, we used inline HTML fields to create makeshift banners within NetSuite records. However, it’s time to elevate the user experience by leveraging NetSuite’s native features for creating dynamic message banners and dialogs.
There’s something off about standard dialogs in applications; they feel disconnected from the system and often suggest that user experience hasn’t been prioritized. Traditional alerts can disrupt workflows, leading to frustration rather than clarity.
NetSuite offers various types of banners—confirmation, error, information, and warning—accessible via the N/ui/message module. These banners allow users to interact with the page while receiving important updates about background processes.
You can see these banners in action here:
To test this in your account, I’ve arranged the script with a toggle feature. Simply check the “Simulate Failed Connection” parameter in the Restlet script deployment.
For scenarios where user input is critical, NetSuite provides dialogs that maintain the NS feel, accessible via the N/ui/dialog module. These customized dialogs enhance interaction and decision-making.
Example of a Customized Confirmation Dialog:
And for comparison, here’s NetSuite’s native alert dialog:
You can see these dialogs in action here:
To utilize these dialogs in your account, I’ve included a toggle in the script. Just uncheck the “Use Banner for Message” parameter in the user event script deployment.
By moving away from boring alerts and embracing NetSuite’s customizable banners and dialogs, you can significantly enhance user experience and engagement.
These tools not only make your application more user-friendly but also ensure that important information is communicated effectively.
To see the complete SuiteScript code and implementation details discussed in this article, visit Jona's GitHub repository.
Jona has over a decade of experience in SuiteCloud Development on the NetSuite platform. She specializes in implementing advanced solutions and has led teams in creating high-quality software. Jona holds multiple certifications and has been recognized with awards like the Summit Award and Quality Champion Award.