title: How can I create a waitlist when a Google Form submission limit is reached?
body: <p>What is the best way to limit the number of people who can submit a Google Form, then offer others the option of joining a waiting list once the limit is reached?</p>
  
  <p>I can use the following script to close the form when a defined limit is reached, but would like instead to open a different form at that point to collect waitlist submissions.</p>
  
  <pre><code>function closeForm() {
      // get active form
      var form = FormApp.getActiveForm();
  
      // retrieve number of responses thusfar
      var responses = form.getResponses();
  
      // set close message
      var msg = "We're sorry, but this session is full. Future sessions will be announced in the CISL Daily Bulletin. Thank you for your interest.";
  
      // do the math
      if(responses.length &gt;= 1) {
          form.setAcceptingResponses(false).setCustomClosedFormMessage(msg);
      }
  }
  </code></pre>
  
  <p>I've checked the Google Docs Help Forum and searched here. What little I have found so far is based on an older version of Google Forms.</p>
  
  <p>Any suggestions for how to do this?</p>