title: Using e.values with onFormSubmit
body: <p>I'm brand new at this so please excuse me if this is a silly question.</p>
  
  <p>I'm using google script to carry out a change based on the submitted answer from a google form.
  I've got a test function I've been using to get it right in the script editor and it works perfectly.
  When using the onFormSubmit trigger instead though, getting the variable result from e.values, it isn't doing anything.  I've defined the trigger for the project and can see that confirmed in the 'Current Project's Triggers' window so it can't be that.</p>
  
  <p>This is the test function code:</p>
  
  <pre><code>function Test_form_submit() {
     var ss = SpreadsheetApp.getActiveSpreadsheet()
     var sheet = ss.getSheetByName("Group Totals")
     SpreadsheetApp.flush()
     var their_choice1 = "Group 5: Thursday 6-8pm"
     var r = find_limits("C3:E7", their_choice1)
     var count = r[0]
     var limit = r[1] 
     check_availability("545507554", count, limit, their_choice1)
  
  }
  </code></pre>
  
  <p>This is my trigger function code:</p>
  
  <pre><code>function onFormSubmit(e) {
    var ss = SpreadsheetApp.getActiveSpreadsheet()
    var sheet = ss.getSheetByName("Group Totals")
    SpreadsheetApp.flush()
    var their_choice1 = e.values[3]
    var r = find_limits("C3:E7", their_choice1)
    var count = r[0]
    var limit = r[1] 
    check_availability("545507554", count, limit, their_choice1)
  
  }
  </code></pre>
  
  <p>The choice of theirs I'm wanting is in column D on the spreadsheet so I believe e.values[3] is the right thing to use.
  I can't understand why nothing is happening.</p>
  
  <p>I tried adding a line of logger.log(e.values[3]) as well but the log is blank when I look.</p>
  
  <p>Any help would be much appreciated!</p>