获取Google表单ID以进行修改 [英] Get Google Form ID for edit

查看:210
本文介绍了获取Google表单ID以进行修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google表单.我提交表格.如何通过使用Google Apps脚本获取一个/链接来编辑此表单的答案?

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?

我想发送一封电子邮件,其中包含用于编辑多封电子邮件答案的链接,而不是仅一封电子邮件(如Google表单所提供).

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

推荐答案

如果您希望链接编辑已提交的答案",则

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());
}

参考文献:

  • 表单提交事件对象
  • ResponseUrl
  • MailApp
  • 触发安装
  • References:

    • Form Submit Event Object
    • ResponseUrl
    • MailApp
    • Trigger Installation
    • 这篇关于获取Google表单ID以进行修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆