I am trying to do some validation on a sales order item add with a dialog.confirm but if it returns a promise object, I am unable to return true / false in the validateLine client script since it continues to execute the rest of the script. Does anyone have a good solution to actually getting a yes/no dialog to work?