thwippp
3/10/2017 - 8:24 PM

Create a trigger

Create a trigger

function createTrigger() {
  var ss = SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/1JPtc2tD1U1jkoWhYwBx9u0U_09zfNqMu1SMEA5yWTeI/edit#gid=309407576");
  ScriptApp.newTrigger('COPYaddNewStudentOnForm')
  .forSpreadsheet(ss)
  .onFormSubmit().create();
}