Get Google Form ID for edit

与世无争的帅哥 提交于 2019-12-13 03:27:26

问题


I am using Google Form. I submit the form. How can I get a/the link for editing the answer of this form, by using Google Apps script?

I want to send an email containing a link for editing answers to multiple emails, instead of just 1 email (as google form provides).


回答1:


If you want the link to edit the "answers" already submitted,

function onFormSubmit(e){ //Trigger for this function installed from form(not spreadsheet)
    MailApp.sendEmail("recipient@example.com,recipient2@example.com",
        "Your form has a new response. Form response edit link below:",
         e.response.getEditResponseUrl());
}

References:

  • Form Submit Event Object
  • ResponseUrl
  • MailApp
  • Trigger Installation


来源:https://stackoverflow.com/questions/52408878/get-google-form-id-for-edit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!