N/ui/dialog is an async module and it uses promise...
# suitescript
u
N/ui/dialog is an async module and it uses promise that's why it saves without finishing the confirm dialog
s
so I can't prevent a record to save? that makes dialog.confirm useless
u
yes. The dialog module doesn't work with the saveRecord function. This is because of the promise functionality linked to dialog module