Due to the nature of SuiteScript 2.0’s dialog.confirm box, utilizing it on a record to confirm if the user wants to proceed in saving proves to be difficult.
We can make use of native Javascript’s confirm() to achieve similar results albeit not as visually appealing. Below is a sample code showing usage of it on a Client SuiteScript’s saveRecord function.
function saveRecord() {
return confirm('Continue saving this record?');
}