How do I edit the response of a form submission in Google Forms/Sheets?

前端 未结 1 881
一整个雨季
一整个雨季 2020-12-14 11:04

Recently, I\'ve been conducting a survey. I began creating it in Excel Forms Online but switched to Google Forms after I realized several of its shortcomings. I hit a few sn

相关标签:
1条回答
  • 2020-12-14 11:33

    The code suggested here works, as I just tried it myself on Feb 13, 2017.

    Here are the steps I followed to get this to work

    • First, load your form as if you were going to edit the form.
    • Look for the "form id" for your form in the url in the address bar. It should look something like this:

    https://docs.google.com/... /forms/d/1ZIrWiRZQrUsz1y8OBoeB7AtCOM4Ax4FxAQm8xAR1OYo/edit

    • So the id in this example would've been "1ZIrWiRZQrUsz1y8OBoeB7AtCOM4Ax4FxAQm8xAR1OYo"
    • Now go to https://script.google.com
    • Replace all the text that shows up in the Code.js section with the following, AFTER you've edited it and put your form id in place of YOUR_FORM_ID_HERE below.

      function dumpEditResponseUrlsForYourForm() {
         // Change this next line to use the id of your form
         var myFormId = "YOUR_FORM_ID_HERE";
      
         var form = FormApp.openById(myFormId); 
         var formResponses = form.getResponses();
         for (var i = 0; i < formResponses.length; i++) {
           var formResponse = formResponses[i];
           Logger.log(formResponse.getEditResponseUrl());
         }
      }
      
    • Click "View | Logs" in the Google Script web page. It'll pop up a window with links to your form responses.
    0 讨论(0)
提交回复
热议问题