I need a script logic in Client Script SaveRecord(...
# suitescript
s
I need a script logic in Client Script SaveRecord() function, which saves the record based on true/false of a dialog.confirm(options).then(success).catch(failure) box. How can we achieve this?
b
N.dialog is not a modal window like the vanilla javascript confirm so you can't wait for the user's imput
and suitescript does not offer a way to submit the currentRecord
if you must use N/dialog, you have to use javascript to do the equivalent of clicking the save button