我需要在多项选择项的每个选项中插入一个 Google Drive 图像。检查文档后,类 .addMultipleChoiceItem()
不支持方法 .setImage()
。还有另一种方法可以从 Google Drive 插入图片吗?
例子:
var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
var item = form.addListItem();
item.setTitle('Do you prefer cats or dogs?')
.setChoices([
item.createChoice('Cats'), <------ I need to insert an imagen of a cat
in this choice with code.
item.createChoice('Dogs')
]);
最佳答案
基于此 link ,您可以使用 Google 表单用户界面为多项选择添加图像。但在 Apps 脚本中,您只能添加文本。这也被归档为 feature request .
关于google-apps-script - 使用 Google Apps 脚本在 Google 表单中的多项选择项中插入图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49022122/