Although I have asked NS for a synchronous version...
# suitescript
m
Although I have asked NS for a synchronous version of dialog that we can use on the validate events for this reason.