title: How do I create a pop up box in Google App script?
body: <p>Basicly this is my question:</p>
  
  <p>How do I, using Google App script w/ HTML service create a Pop up or dialog box.</p>
  
  <p>I am doing lots of validation in a Google Script file (as appose to HTML file) and I just need to quickly tell the user the error, then they can adjust their form and carry on... this is my attempt at validation so far. I've tried to just use the javascript alert() function but it does nothing.</p>
  
  <pre><code>if(date == ""){
       alert("please select a date");
     }else if(teacher == ""){
       alert("please put your name");
     }else if(group == ""){
       alert("Please enter a group");
     }else if(notes == ""){
       alert("Please write where the tech is being used in the notes");
     }else if(events.length != 0){
       window.alert("It appears that the slot your trying to book is taken");
     }else{
  </code></pre>
  
  <p>Im hoping I can do this validation this way and not have to do a whole new method of validation (most likely from within the HTML file)</p>