我正在尝试使用 Google Apps 脚本在 Google 表单(已定义为测验)中设置正确答案
可以使用如下代码定义实际的 Google 表单
var form = FormApp.create('New Form');
var item = form.addCheckboxItem();
item.setTitle('What condiments would you like on your hot dog?');
item.setChoices([
item.createChoice('Ketchup'),
item.createChoice('Mustard'),
item.createChoice('Relish')
]);
(摘自https://developers.google.com/apps-script/reference/forms/)
有没有办法在代码中定义正确答案并为其分配分数?
我知道这可以手动完成...
最佳答案
UPDATE: On April 2017 Google announced that now it's possible to create Google Forms quizzes programmatically.
目前没有设置正确答案的方法。请star issue 6143 : 通过 API 创建测验表单
关于google-apps-script - 使用 Google Apps 脚本在 Google 表单中设置正确答案(已定义为测验),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39603541/