Display a question to the user with an 'Okay or Cancel' response and a callback to respond to the result


CONFIRM displays a message to the user and allows a callback function that will be invoked to respond to the result of the question.


title String (required) - A short title for the alert

message String (required) - The message content for the alert

callback function (required) - invoked when the message box is dismissed


CONFIRM('Confirm', 'You have selected a critical safety violation. Are you sure?', function (result) {
  if (result.value === 'Okay') {
    // Selected Okay
  } else {
    // Selected Cancel