Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ticketSaveEmailYesNo(){
- // Display a dialog box with a message and "Yes" and "No" buttons. The user
- //can also close the
- // dialog by clicking the close button in its title bar.
- var ui = SpreadsheetApp.getUi();
- var response = ui.alert(
- 'Please Confirm',
- 'Email a copy of this ticket to the client',
- ui.ButtonSet.YES_NO);
- // Process the user's response.
- if (response == ui.Button.YES) {
- ticketSaveAndMail();
- } else {
- ticketSavePDF()
- }
- }
Add Comment
Please, Sign In to add comment