Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

329
Visualizações
Sending Google Form answers to a Google Sheet via Apps Script, even if answers from the same user have not changed

I have been trying to create an Apps Script that records new answers to a Google Form in Google Sheet.

The reason why I need it is:

  1. I need users to be able to file max 1 answer per month, but then re-use the same form each month. I.e. Users can't file more the one answer within the same month but they can file one answers per month.
  2. I need a record of all answers for every month in a single Tab of Google Sheet and want to minimize manual work.

Hence, my procedure is deleting all answers from the Form and re-sending the same link to the filer group. I have used the below script which records all answers correctly. Problem is that if an answer is left unchanged with respect to the previous month from the same user, the corresponding cell is blank.

function copyLastRow(event) {  
  var target = SpreadsheetApp.openById('spreadsheetID').getSheetByName('all responses');
  target.appendRow(event.values);
}

This is how the responses look like with the script above. All of those answers have been submitted by the same google account, and when a response is left unchanged, it records a blank cell.

I would be looking to get still the text of the answer even if it has been left unchanged with respect to the previous month.

See how it records in Google Sheets

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda