【问题标题】:Open google form on submit提交时打开谷歌表单
【发布时间】:2019-08-29 14:07:07
【问题描述】:

一旦提交被点击,我想调用另一个谷歌表单。这可能吗?

我试过下面的代码;但是什么都没有发生。我想知道在谷歌表格上更改的特定单元格上打开表单是否更容易。

function onSubmit() {
FormApp.openById("ID")
}

我有一个特定的表单,当我点击提交时,我希望它调用另一个特定的表单

【问题讨论】:

  • 在这种情况下,“呼叫”是什么意思?你想让它为用户弹出吗?你只是想让你的脚本与之交互吗?
  • 我希望它为用户弹出。
  • Google 表单最近似乎增加了对旧表单添加新表单的内置支持

标签: google-apps-script google-forms


【解决方案1】:

openById 等 Google Apps 脚本“打开”方法在服务器端打开引用的文档。

解决方法是创建一个允许您添加客户端代码的表单,为此,一种替代方法是使用 Google Apps Script HTML Service,即您可以创建一个网络应用程序。

相关

参考文献

【讨论】:

  • 嗨@Ruben,我收到了一个无法从这个上下文调用FormApp.getui。 function onFormSubmit() { var ui = FormApp.getUi(); //. ui.createMenu('Menu') .addItem('Show Window', 'testNew') .addToUi(); } function testNew(){ showAnchor('Click this link to finish Provider request',C_URL); } function showAnchor(name,url) { var html = '<html><body><a href="'+url+'" target="blank" onclick="google.script.host.close()">'+name+'</a></body></html>'; var ui = HtmlService.createHtmlOutput(html) FormApp.getUi().showModelessDialog(ui,"demo"); }
  • 这就是它的工作方式。如果您需要进一步的帮助,请发布一个新问题。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-01-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多