我需要在多项选择项的每个选项中插入 Google Drive 图像。在检查文档后,该类.addMultipleChoiceItem()
不支持该方法.setImage()
。还有其他方法可以插入 Google Drive 中的图像吗?
Example:
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 https://stackoverflow.com/questions/49022122/google-forms-inserting-an-image-in-a-multiple-choice-field-using-apps-script,您可以使用 Google 表单 UI 添加图像以进行多项选择。但在 Apps 脚本中,您只能添加文本。这也被归档为功能要求 https://issuetracker.google.com/issues/36765518.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)