Google has recently added the ability to program quizzes in Google Apps Script
var form = FormApp.create('Ice cream Quiz').setIsQuiz(true);
form.set
// Make a 10 point question and set feedback on it
var item = form.addCheckboxItem();
item.setTitle("What flavors are in neapolitan ice cream?");
item.setPoints(10);
// chocolate, vanilla, and strawberry are the correct answers
item.setChoices([
item.createChoice("chocolate", true),
item.createChoice("vanilla", true),
item.createChoice("rum raisin", false),
item.createChoice("strawberry", true),
item.createChoice("mint", false)
]);
// If the respondent answers correctly, they'll see this feedback when they view
//scores.
var correctFeedback = FormApp.createFeedback()
.setText("You're an ice cream expert!")
.build();
item.setFeedbackForCorrect(correctFeedback);
// If they respond incorrectly, they'll see this feedback with helpful links to
//read more about ice cream.
var incorrectFeedback = FormApp.createFeedback()
.setText("Sorry, wrong answer")
.addLink(
"https://en.wikipedia.org/wiki/Neapolitan_ice_cream",
"Read more")
.build();
item.setFeedbackForIncorrect(incorrectFeedback);
I would like the recipients of the quiz to view their own score automatically. I do not see how to do this programmatically. Rather I need to do this manually by gong into the Quiz settings and then set Release Grade to be "Immediately after Submission" and Respondent can see "Missed Questions", "Correct Answers", "Point Values"
Is it possible to set these programmatically?