Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
Form Edit URL by Java Script

I am using this script for make edit URL of a Form. But it stops working after two or three days until I copy and paste this script with a new function name.

var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(sheetName);
var headers = sheet.getRange(1, 1, 1, sheet.getLastColumn()).getValues();
var columnIndex = headers[0].indexOf(columnName);
var data = sheet.getDataRange().getValues();
var form = FormApp.openByUrl(formURL);

for (var i = startRow - 1; i < data.length; i++) {
  if (data[i][0] != '' && data[i][columnIndex] == '') {
    var timestamp = data[i][0];
    var formSubmitted = form.getResponses(timestamp);
    
    if (formSubmitted.length < 1) continue;
    
    var editResponseUrl = formSubmitted[0].getEditResponseUrl();
    
    sheet.getRange(i + 1, columnIndex + 1).setValue(editResponseUrl);
  }
}

}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!