0
我已经开始学习Google App脚本,并且在第一个使用Forms API的示例中停滞不前。Google Apps窗体脚本openById,openByUrl无法正常工作
以下是我的代码:
function testFunction(){
var newClientForm = FormApp.openById('1f-676zsIuVpsQVSr1tAxttTs********');
var clientForm = FormApp.openByUrl('Url of the form in edit mode');
Logger.log('The form Title is ', newClientForm.getTitle());
Logger.log('The form Title is ', clientForm.getTitle());
}
无论哪种方式,当我检查日志,我只用空值获得的字符串消息。
要检查我的表单ID是否正确,我尝试删除Id中的新字符,并且脚本报告错误。但是当提到正确的Id时,脚本不能按预期工作。
任何输入将不胜感激。