提交 Google 表单后执行的脚本

Script to execute after submit Google Forms

如何使 Google 表单在提交后执行脚本而不是显示确认消息?

我尝试在 脚本编辑器 中设置触发器,创建并显示新的 html 页面:

function respondToFormSubmit(e) {
  return HtmlService.createHtmlOutputFromFile('index');
}

并在编辑 -> 当前项目的触发器中,我在表单提交时设置了它运行,但它没有。

好像不行。

In Google Forms, custom user interfaces are only visible to an editor who opens the form to modify it, not to a user who opens the form to respond.

来源:HTML服务documentation