- Developers can use HTML to format the text shown to users
- It inherits NetSuite look and feel for display
SuiteScript 2.0 confirm function Issue
The underlying reason for the failure is that SuiteScript 2.0 version returns a promise object and continues to execute the rest of the script instead of pausing the execution of the script until the answer is provided. When it is used in saveRecord client script trigger, SuiteScript 2.0 version will always return false regardless of option selected by the user and prevents them from saving the record.
Native Confirm process with saveRecord Trigger
SuiteScript 2.0 Confirm process with saveRecord Trigger
When SS2.0 confirm is used, instead of pausing execution, it shows the dialog box with confirm options while continuing to execute the rest of saveRecord function.
Below is sample code.
If you are having trouble with implementing solutions using SuiteScript 2.0, please feel free to contact us!