I need to insert a Google Drive image in each choice of the multiple choice item. Upon checking the documentation, the Class .addMultipleChoiceItem()
doesn't support the method .setImage()
. Is there another way to insert an image from 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')
]);
Based from this link, you can add image for multiple choice using the Google Form UI. But in the Apps Script, you can only add text. This is also filed as a feature request.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With