简体   繁体   English

将数据从Google表格显示到Google表单中

[英]Display Data from Google Sheet into Google Forms

I am creating a Quiz. 我正在创建测验。 What I did first is to create data in google sheet and here it is 我首先要做的是在Google工作表中创建数据,这就是

Link of Google Sheet Google表格链接

as you can see there I have 2 sheet and that is Questions and Answers 如您所见,我有2张纸,这就是问题与答案

My Question is how can i display the Question and Answers in there respective position in Google Forms i am linking them by Question ID 我的问题是如何在Google表单的相应位置显示问题和答案,如何通过问题ID链接它们

TYSM TYSM

I think the comments above will help you. 我认为以上评论对您有帮助。 This is also code (with help from here) which copies a multiple-choice question from one quiz to another. 这也是代码(在这里有帮助),将多项选择题从一个测验复制到另一个测验。

If you combine this code with the stuff referred to in the comments about reading stuff from a sheet then you should be ok. 如果将此代码与有关从工作表中读取内容的注释中提到的内容结合起来,那么您应该没事。

I see that you mention a problem copying images. 我们发现您提到复制图像时遇到问题。 I'm stuck at that point too. 我也被困在这一点上。

function copyMultipleChoiceItem(item1, item2) {
//  copies MC question item1 to item2 - tested PDW 17/05/20
//  copy of feedback now working - tested PDW 17/05/30
//
    var item1MC = item1.asMultipleChoiceItem();
//  basic question items
    item2.setTitle(item1.getTitle());
    item2.setHelpText(item1.getHelpText());
    item2.setPoints(item1MC.getPoints());
    item2.setRequired(item1MC.isRequired());

//  the choices
    var choices = item1MC.getChoices();
    for (var i = 0; i < choices.length; i++) {
        item2.createChoice(choices[i].getValue(),choices[i].isCorrectAnswer());
    }
    item2.setChoices(choices);
//  the feedback
    var feedback1 = item1MC.getFeedbackForCorrect();
    item2.setFeedbackForCorrect(feedback1);
    var feedback1 = item1MC.getFeedbackForIncorrect();
    item2.setFeedbackForIncorrect(feedback1);
}

I'm not fully cleared about your question, but If you want an easy way to do a relationship between Google Sheets (columns) and Google Forms Drop-down lists and other Forms objects, you can try this add-on: formRange. 对于您的问题,我还没有完全解决,但是如果您想要一种简单的方法来建立Google表格(列)与Google Forms下拉列表以及其他Forms对象之间的关系,则可以尝试以下加载项:formRange。 Build your sheets then go to your Form and Addons. 构建工作表,然后转到“表单和附加组件”。 Chose formRange and install it. 选择formRange并安装它。 It's pretty easy to use and you have a little tutorial inside it. 它非常易于使用,并且其中包含一些教程。

formRanger: Google Form addon formRanger:Google表单插件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM