google-form-quiz

How to set correct answer text in google forms from spreadsheet using script

久未见 提交于 2021-01-29 10:23:45
问题 I want to make auto-grading short-answer quiz using google forms. The data is in spreadsheet. column A has questions. column B has correct answers. column C has explanations. The code below makes quiz, but don't set correct answer in each question. "item.createResponse(an);" seems not working. How do I set correct answer? let form = FormApp.openById(formID); form.setIsQuiz(true); // get data from sheet let ss = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('문제'); let range = ss

Google Forms Script ItemResponse getScore() returns null

孤者浪人 提交于 2020-08-07 09:47:28
问题 Not sure if it is a bug or not, but the getScore() method (https://developers.google.com/apps-script/reference/forms/item-response#getscore) always returns null for me, while it is said it should return a double . The form is a Quiz, does accept answers, the score is set to 2 to all questions, the score is being registered in the responses in the Google Form. // Code.gs function onOpen (e) { setOnSubmitTrigger(); } function setOnSubmitTrigger () { var form = FormApp.getActiveForm(); ScriptApp

Google Forms Script ItemResponse getScore() returns null

我是研究僧i 提交于 2020-08-07 09:44:18
问题 Not sure if it is a bug or not, but the getScore() method (https://developers.google.com/apps-script/reference/forms/item-response#getscore) always returns null for me, while it is said it should return a double . The form is a Quiz, does accept answers, the score is set to 2 to all questions, the score is being registered in the responses in the Google Form. // Code.gs function onOpen (e) { setOnSubmitTrigger(); } function setOnSubmitTrigger () { var form = FormApp.getActiveForm(); ScriptApp

Copying item .getFeedbackForCorrect between Google quiz forms

主宰稳场 提交于 2020-07-30 07:02:53
问题 The .duplicate() method does not work between forms (well not as far as I can see) so I have written a quick routine to copy multiple-choice items from one form to another. (I'm doing this to set quizzes in Classroom . I have banks of questions on single topics in quizzes for formative assessment and want to combine random questions from these for summative assessment.) The code I've written works fine in copying over the questions but not the feedback. This is my first GAS code so apologies!

How to create Google Form Quiz using Google Apps Script or GAS?

╄→гoц情女王★ 提交于 2020-04-17 20:41:50
问题 Is it possible to create a quiz form using GAS from a list of questions and answers on the spreadsheet? I'm making a word test for English learners, on which test-takers are asked to type an answer for each question. I've created a quiz with multiple questions or with radio buttons..., but I have been not able to import TEXT answers from spreadsheets to the TEXT-type quiz. The script I have is below... function myFunction() { var ss = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(

Using Google Apps Script to set the correct answer in a Google Forms (that has been defined as a quiz)

南楼画角 提交于 2019-12-25 07:59:57
问题 I am trying to use Google Apps Script to set the correct answer in a Google Forms (that has been defined as a quiz) The actual Google Form can be defined using code such as var form = FormApp.create('New Form'); var item = form.addCheckboxItem(); item.setTitle('What condiments would you like on your hot dog?'); item.setChoices([ item.createChoice('Ketchup'), item.createChoice('Mustard'), item.createChoice('Relish') ]); (Taken from https://developers.google.com/apps-script/reference/forms/) Is

Creating a Multiple choice quiz from google forms

孤者浪人 提交于 2019-12-23 04:56:25
问题 I am trying to create a multiple choice quiz,that takes questions from a question bank,using GOOGLE FORMS and the results are stored in a spreadsheet. I already know how to create a quiz and store the data in the spreadsheet,but I don't know how to use a question bank. Can anyone help me with this? Thanks in advance. 回答1: Recently Google announced that they added several methods to Google Apps Script Forms service to make it able to handle Google Forms quizzes programmatically. Thanks to this

Google forms get score of respondent's answer

こ雲淡風輕ζ 提交于 2019-12-13 22:33:51
问题 I write google forms add-on for statistical analysis of responses (average, median, standard deviation, discriminative efficiency and so on). Is it possible to get score of user's answer from gs code? Or maybe exists the method for checking user's response? 回答1: please research before asking. Just a quick glimpse at the documentation shows the entry for getResponses() which shows what you can do with the formResponse object. As you can see you can get every single part of the response. 来源:

Google Forms - Inserting an image in a multiple choice field using Apps Script

最后都变了- 提交于 2019-12-13 12:46:39
问题 I have created a script which will add images to a Google form to produce a multiple choice quiz. At the moment it adds an image then adds the options (A,B,C,D). The image and the option are two separate items. As a result, I can't randomise the order as I need to make sure the image and question remain together. Manually creating the quiz allows for an option to add the image with the question so it appears as one item. This would be preferable as it would allow me to randomise the question

Release grade immediately after submission - how to do using Apps Script

夙愿已清 提交于 2019-12-08 02:13:15
问题 I am using the following lines of Apps Script to dynamically generate a Google Forms Quiz form.setIsQuiz(true); form.setTitle("New") .setDescription('Test') .setConfirmationMessage('Thanks for responding!') .setAllowResponseEdits(false) .setAcceptingResponses(true) .setLimitOneResponsePerUser(true) .setShuffleQuestions(true) .setProgressBar(true) .setCollectEmail(true) This is creating a form and i am able to send out the quizzes to multiple people. But i also want to "Release Score >>