function autoFillGoogleDocFromForm(e) {
var formid = '1S7XslAaB9Mu69t4M68KGtLTdS0ELXNQ_53qYdWodt_Q'
var timestamp = e.values[0];
var FullName = e.values[1];
var file = DriveApp.getFileById('1nnQqsfAbSXu5v8Ma7yuqs6DqEN5d3K32Rqb6F5YbYhc');
var folder = DriveApp.getFolderById('1OJYeBuTiyYsLhFKys_Vm0RQxq7NCW0Ls')
var copy = file.makeCopy(FullName);
var doc = DocumentApp.openById(copy.getId());
var body = doc.getBody();
body.replaceText('<<Full Name>>', FullName);
doc.saveAndClose();
}
and when I run this code it's turn
Error
TypeError: Cannot read properties of undefined (reading 'values')
I don't get it, I've watched the youtube and do exactly the same thing, but it won't work