[英]Dynamically unlink a google form from a spreadsheet
I am creating a dynamic form for a Google spreadsheet. 我正在为Google电子表格创建动态表单。 Each time I generate the form I get an error popup saying "there's already a Form attached to the spreadsheet".
每次生成表单时,都会弹出一个错误消息,提示“电子表格中已经有一个表单”。 I then have to manually unlink the form before I can use it.
然后,我必须先手动取消链接表单,然后才能使用它。
Is there a method that will allow me to programmatically unlink the spreadsheet? 有没有一种方法可以让我以编程方式取消链接电子表格?
How are you creating it? 您如何创建它? Please post some code along with your questions.
请发布一些代码以及您的问题。
But to "detach a form" from a spreadsheet, you have to open the form using FormApp
and call removeDestination()
但是要从电子表格“分离表单”,您必须使用
FormApp
打开表单并调用removeDestination()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.