Skip to content

Instantly share code, notes, and snippets.

@indatawetrust
Created May 21, 2019 09:15
Show Gist options
  • Save indatawetrust/68505be60f5601ffff1d7948b9327fe0 to your computer and use it in GitHub Desktop.
Save indatawetrust/68505be60f5601ffff1d7948b9327fe0 to your computer and use it in GitHub Desktop.
var form = FormApp.create('Örnek Test');
form.setIsQuiz(true);
var item = form.addMultipleChoiceItem();
item.setTitle("Türkiyenin başkenti neresidir?")
.setChoices([
item.createChoice("İstanbul", false),
item.createChoice("Ankara", true),
item.createChoice("Antalya", false),
item.createChoice("Bursa", false)
])
.showOtherOption(false);
var correctFeedback = FormApp.createFeedback()
.setText("Doğru")
.build();
item.setFeedbackForCorrect(correctFeedback);
var incorrectFeedback = FormApp.createFeedback()
.setText("Yanlış")
.build();
item.setFeedbackForIncorrect(incorrectFeedback);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment