My question may be related to another question about CheckboxItem choices. The google forms interface allows you to enter images in the statement of any item (it can be multichoice, checkbox ...). However, in the Google Script reference, there is apparently no method to perform this action. I have tried, for example, to run the setImage(image) method to a multiplechoice item, but obviously it is not defined.
For now, my solution has been to create an ImageItem with the image in this way: output_form.addImageItem().setImage(img), where "output_form" is an open form and "img" an image Blob. Therefore the image is displayed in the form, but in a different item. In this way, when choosing in the form the option of displaying the items in random order, the item and associated image can be presented separately. The cleanest solution would be to include the image in the item, so the question is whether there is any way to achieve it in google script.
Aucun commentaire:
Enregistrer un commentaire