Getting a yes/no response and text input

var userInterface = SpreadsheetApp.getUi();
  var getResponse = userInterface.prompt('This is the title', 'This is the question', userInterface.ButtonSet.YES_NO);
  if(getResponse.getSelectedButton() == userInterface.Button.YES)
  {
    Browser.msgBox("You said yes");
    Browser.msgBox('You just keyed in:' + getResponse.getResponseText());
  }else
  {
    Browser.msgBox("You said no");
  }

Comments

Popular posts from this blog

Popup message box

Create a side bar