Script running multiple times onFormSubmit
问题 I have the following code set to run based on a onFormSubmit trigger but it will sometimes run multiple times with the same submission. I want to verify if it already copied the row and if so to stop the script. function toDo(){ var responses = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Form Responses 1"); var jobs = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Jobs"); var lastrow = responses.getLastRow(); var col = responses.getLastColumn(); var row = responses.getRange