Questions tagged [google-form-quiz]

Use this tag on questions about programmatically creation and/or edition of quizzes using Google Forms through Google Apps Script.

Google Forms is a web app to create questionnaires. It could be used to create quizzes. They could be created programmatically by using Google Apps Script.

On most cases could be convenient to use together with and .

As Google Apps Script is based on JavaScript, if your question involves data types, JavaScript methods or errors, include .

Don't use for questions about the use of Google Forms that are not set as quizzes.

58 questions
9
votes
1 answer

How to add code snippets in Google Form questions

I want to make a quiz for students regarding basic programming using Google Forms. The challenge is that I can not find any Add On how add code snippets to the questions, like it is here in Stack Overflow, pressing Ctrl+K.
5
votes
0 answers

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

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…
5
votes
1 answer

Dynamic/Random questions on Google Form

I have a set of 100 questions with multiple choice answers that user have to answer to. I want a random set of 5 or 10 questions to be given to the user each time they open the Google form and store the user response for those 5/10 questions. The…
User54211
  • 121
  • 2
  • 11
5
votes
1 answer

Google Forms Script ItemResponse getScore() returns null

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…
igorpavlov
  • 3,576
  • 6
  • 29
  • 56
5
votes
1 answer

"make this a quiz" and create answer key using FormApp in google spreadsheet script

I wrote a google spreadsheet script that parses a spreadsheet and creates a form with the data. Once the form is created, I can manually go to the form settings -> Quizzes and then "make this a quiz". Once I make it a quiz, I can manually assign…
3
votes
2 answers

How to delete specific cells with app script?

My intention is to be able to delete for example cell F1 without deleting cell F2. var sheet = ss.getSheetByName("Questionário DQSA"); var range = sheet.getRange("B1:U1"); range.clearContent(); Here I clear the content of these cells but I…
Bernardo
  • 53
  • 1
  • 10
3
votes
1 answer

how to create a gradable text item in google forms using google app script?

It is straigt forward to include the answer keys for a multiple choice question , as evident from following code. var item = Form.addCheckBoxItem(); item.setTitle("What is 1 + 2?"); item.setChoices([item.createChoice("1", false), …
Siva-Sg
  • 2,741
  • 19
  • 27
3
votes
0 answers

How to add a timestamp to google form?

Is it possible to add a Timestamp to Google Form? I know that a timestamp information is received to the owner of the form when a submission is made. But I want current time and date information to show on the form. Is it possible? I checked out…
lee huang
  • 1,209
  • 1
  • 12
  • 23
3
votes
2 answers

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

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) …
Krishna
  • 81
  • 1
  • 9
3
votes
1 answer

Copying item .getFeedbackForCorrect between Google quiz forms

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…
3
votes
2 answers

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

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 =…
gordon613
  • 2,770
  • 12
  • 52
  • 81
2
votes
1 answer

Export questions and feedback from Google Forms to Google Sheets

I've learned here to create a script to import all questions from a Google Form to a Google Sheet. What do I need to add to the script to export the feedback from each question as well? I've tried this [in Alberto Vielma's script]: var question =…
2
votes
1 answer

What is the difference between pagebreakitem and sectionheaderitem in google app script (google form)?

I found there are two ways to add a new section in Google form using pagebreakitem and sectionheaderitem in google app script which gives the same result. What is the difference between them?
Newbie
  • 31
  • 1
2
votes
3 answers

Google form: Can I add a hyper link that will be opened on a new tab?

I have no idea how to add a hyperlink (that will be opened on a new tab) in a Google form. I know how to do in HTML but I don't know how to do in a Google form. I have just added a link in the "Confirmation message:" of presentation area of the…
ABCman
  • 125
  • 4
  • 12
2
votes
1 answer

Auto submit google form after a time limit

I want to use app script in my Google form to automatically submit the form in 20 minutes if the user doesn't click on submit within 20 minutes. Anyway to implement this????
mayukhsroy
  • 141
  • 1
  • 1
  • 9
1
2 3 4