Skip to content

Instantly share code, notes, and snippets.

@davecra
Created June 14, 2017 02:11
Embed
What would you like to do?
Dialog Callback
function processMessage(arg) {
// close the dialog
dialog.close();
// procress the result
if(arg.error == 12006) {
// user clicked the (X) on the dialog
sendEvent.completed({ allowEvent: false });
} else {
if(arg.message=="Yes") {
// user clicked yes
sendEvent.completed({ allowEvent: true });
} else {
// user clicked no
sendEvent.completed({ allowEvent: false });
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment