I have a Google Form which populates a Responses spreadsheet. I have basic understanding of scripts and how to run them. I'm not quite sure where to start on this though..
A user submits a form and a new line is created on row (example) 452 in the Responses spreadsheet. The responses fill columns A to D. I would like column E on that new row to be populated with 'YES'. Could someone help me get start on this please?
This is my cude attempt at the code:
function InsertID() {
//this script is triggered to run 'From Spreadsheet' on 'Form Submit'
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getActiveSheet();
var LatestID = sheet.getRange(1, 6).getValue() //cell F1 contains the latest ID number given out
row = newform.row
cells(row,5) = LastestID + 1 //put the next ID number in column 5 of the new row
sheet.getRange(1, 6).Value = LatestID + 1 'Increment the LatestID number by 1
}
id = FormApp.getActiveForm().getResponses().length
– k4k4sh1