I'm using Google Form to collect data of my clients. An e-mail will be automatically sent out to the user with pre-filled information for them to review. However, whenever a user edit the form, the pre-filled information will extract the information from the last row.
I know why it happened because I used the e.values so it will always take the latest data/last row.
var firstName = e.values [1];
Is there another way to select the latest row just by looping, comparing all timestamps (first column ---> var time = e.values [0]; ) and select the latest row.
I have tried below code to get the active row but it did not work.
var lastActiveRow = firstsheet.getActiveRange().getRow()-1
I still haven't figure out how to get the latest timestamp/row.