2 years ago
#67868
Mar
Wanting to generate auto unique ID on Google Form using the Apps Script
im an intern and my supervisor ask me to add ID on company existing GForm for client and i have problem where the Apps Script said TypeError: Cannot read property 'range' of undefined _onFormSubmit @ Code.gs:7
function _onFormSubmit(e) {
const { rowStart } = e.range **This is the Code.gs:7**
var url = SpreadsheetApp.getActive().getFormUrl();
var form = FormApp.openByUrl(url);
var response = form.getResponses().pop();
var url = form.getPublishedUrl();
const editUrl = response.getEditResponseUrl()
var responseId = response.getId();
google-apps-script
google-forms
0 Answers
Your Answer