title: Is there a way to create a custom button in google apps script?
body: <p>Here is my code, and where I want to add a custom button:</p>
  
  <pre><code>function showPrompt() {
    var ui = SpreadsheetApp.getUi();
    var result_1 = ui.prompt(
      'Enter task and associated subtasks, if any:',
      ui.ButtonSet.OK_CANCEL); #ADD CUSTOM BUTTON HERE
    //var button = result_1.getSelectedButton();
    var task = result_1.getResponseText();
    var result_2 = ui.prompt(
      'Enter priority, based on when you will begin the task in a sequence of tasks:',
      ui.ButtonSet.OK_CANCEL);
    var button = result_2.getSelectedButton();
    var priority = result_2.getResponseText();
    if (button == ui.Button.OK) {
      ui.alert('Task added.\nTask: '+task+'\nPriority: ' + priority);
    }
  }
  </code></pre>
  
  <p>I can not find a way to create a custom button. I came across this webpage: <a href="https://developers.google.com/apps-script/guides/ui-service" rel="nofollow noreferrer">https://developers.google.com/apps-script/guides/ui-service</a>, and apparently there used to be a createButton method, but this interface has already been deprecated.</p>
  
  <p>Is there a work-around? I don't want to create an image of a button and link it to the script.</p>