【问题标题】:Insert image in multiplechoiceitem in Google Forms with Google Apps Script使用 Google Apps 脚本在 Google 表单中的多项选择项中插入图像
【发布时间】:2018-07-19 16:34:35
【问题描述】:

我需要在多项选择项的每个选项中插入一张 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')
]);

【问题讨论】:

    标签: google-apps-script google-forms


    【解决方案1】:

    基于此link,您可以使用 Google 表单 UI 添加图像以进行多项选择。但在 Apps 脚本中,您只能添加文本。这也被归档为feature request

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      • 1970-01-01
      • 1970-01-01
      • 2013-11-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多