Guest User

Untitled

a guest
Jun 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. function ticketSaveEmailYesNo(){
  2. // Display a dialog box with a message and "Yes" and "No" buttons. The user
  3. //can also close the
  4. // dialog by clicking the close button in its title bar.
  5. var ui = SpreadsheetApp.getUi();
  6. var response = ui.alert(
  7. 'Please Confirm',
  8. 'Email a copy of this ticket to the client',
  9. ui.ButtonSet.YES_NO);
  10.  
  11. // Process the user's response.
  12. if (response == ui.Button.YES) {
  13. ticketSaveAndMail();
  14. } else {
  15. ticketSavePDF()
  16. }
  17.  
  18. }
Add Comment
Please, Sign In to add comment