Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

146
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda