[英]How to attach google form to google spreadsheet using google apps script?
我正在尝试使用脚本将谷歌表单附加到谷歌电子表格,我浏览了电子表格文档,我发现了一个getFormUrl()
函数但没有setFormUrl()
,如果有人能帮助我,我会非常感激。
That's what I did:这就是我所做的:
Not sure if that's what you are looking for, but if so, tell me, I'll give you more details.不确定这是否是您要查找的内容,但如果是,请告诉我,我会为您提供更多详细信息。
I went through the Google Form documentation and i found this :我浏览了谷歌表单文档,我发现了这个:
// Open a form by ID and create a new spreadsheet.
var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
var ss = SpreadsheetApp.create('Spreadsheet Name');
// Update the form's response destination.
form.setDestination(FormApp.DestinationType.SPREADSHEET, ss.getId());
Works fine for me.对我来说很好用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.