The error you’re seeing on line 3 likely arises from the structure of the trigger event object e. Specifically, it looks like the code is trying to access e.response, which is not valid. In the case of the onFormSubmit trigger, the correct property is e.values, which contains an array of the submitted responses in the same order as the form’s questions.
Here’s how you can fix the script by accessing the form responses properly:
Key Changes:
This should resolve your error and allow the script to save the form responses as .txt files in your Google Drive folder. Let me know if you need further adjustments!
Fabrice"Ce message et toutes les pièces jointes (ci-après le "message") sont établis à l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l’expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusionou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'intégrité de ce message, nous déclinons toute responsabilité au titre de ce message, dans l’hypothèse où il aurait été modifié."--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/94d0514d-5bb9-4096-8e77-c0b318f31d1fn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/fb9e9780-1cbf-47d4-8a34-694f95c1c188n%40googlegroups.com.