Class QuizFeedbackBuilder
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
TestGeriBildirimOluşturucu
Görünen metin gibi tüm geri bildirimlerde ortak olan özellikler için ayarlayıcılar içeren temel FeedbackBuilder. Geri bildirim nesneleri oluşturmak için kullanılır.
// Open a form by ID and add a new list item.
const form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
const item = form.addListItem();
item.setTitle('Do you prefer cats or dogs?');
item.setChoices([
item.createChoice('Dogs', true),
item.createChoice('Cats', false),
]);
// Add feedback which will be shown for correct responses; ie "Dogs".
item.setFeedbackForCorrect(
FormApp.createFeedback().setText('Dogs rule, cats drool.').build(),
);
Ayrıntılı dokümanlar
addLink(url)
Geri bildirimin ek materyaline bağlantı ekler.
Parametreler
Ad | Tür | Açıklama |
url | String | Görünen metnin altında gösterilecek bağlantı |
Return
QuizFeedbackBuilder
: Zincirleme için bu QuizFeedbackBuilder
addLink(url, displayText)
Geri bildirimin ek materyaline bağlantı ekler.
Parametreler
Ad | Tür | Açıklama |
url | String | Görünen metnin altında gösterilecek bağlantı |
displayText | String | Bağlantı için gösterilecek metin |
Return
QuizFeedbackBuilder
: Zincirleme için bu QuizFeedbackBuilder
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\u003cp\u003eQuizFeedbackBuilder is used to create custom feedback for quiz responses in Google Forms.\u003c/p\u003e\n"],["\u003cp\u003eIt allows you to set feedback text, add links to supplemental material, and build a Feedback object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetText()\u003c/code\u003e, \u003ccode\u003eaddLink()\u003c/code\u003e, and \u003ccode\u003ebuild()\u003c/code\u003e methods are key to using this class.\u003c/p\u003e\n"],["\u003cp\u003eThis class is specifically designed for quiz feedback within Google Forms.\u003c/p\u003e\n"]]],[],null,["# Class QuizFeedbackBuilder\n\nQuizFeedbackBuilder\n\nThe base FeedbackBuilder that contains setters for properties common to all feedback, such as\ndisplay text. Used to build Feedback objects.\n\n```javascript\n// Open a form by ID and add a new list item.\nconst form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');\nconst item = form.addListItem();\nitem.setTitle('Do you prefer cats or dogs?');\nitem.setChoices([\n item.createChoice('Dogs', true),\n item.createChoice('Cats', false),\n]);\n// Add feedback which will be shown for correct responses; ie \"Dogs\".\nitem.setFeedbackForCorrect(\n FormApp.createFeedback().setText('Dogs rule, cats drool.').build(),\n);\n``` \n\n### Methods\n\n| Method | Return type | Brief description |\n|------------------------------------------------------|------------------------------------------------------------|---------------------------------------------------------------|\n| [addLink(url)](#addLink(String)) | [QuizFeedbackBuilder](#) | Adds a link to the feedback's supplemental material. |\n| [addLink(url, displayText)](#addLink(String,String)) | [QuizFeedbackBuilder](#) | Adds a link to the feedback's supplemental material. |\n| [build()](#build()) | [QuizFeedback](/apps-script/reference/forms/quiz-feedback) | Builds a Feedback of the corresponding type for this builder. |\n| [copy()](#copy()) | [QuizFeedbackBuilder](#) | Returns a copy of this builder. |\n| [setText(text)](#setText(String)) | [QuizFeedbackBuilder](#) | Sets the feedback text. |\n\nDetailed documentation\n----------------------\n\n### `add``Link(url)`\n\nAdds a link to the feedback's supplemental material.\n\n#### Parameters\n\n| Name | Type | Description |\n|-------|----------|--------------------------------------------|\n| `url` | `String` | the link to display under the display text |\n\n#### Return\n\n\n[QuizFeedbackBuilder](#) --- this [QuizFeedbackBuilder](#), for chaining\n\n*** ** * ** ***\n\n### `add``Link(url, displayText)`\n\nAdds a link to the feedback's supplemental material.\n\n#### Parameters\n\n| Name | Type | Description |\n|-----------------|----------|--------------------------------------------|\n| `url` | `String` | the link to display under the display text |\n| `display``Text` | `String` | the text to display for the link |\n\n#### Return\n\n\n[QuizFeedbackBuilder](#) --- this [QuizFeedbackBuilder](#), for chaining\n\n*** ** * ** ***\n\n### `build()`\n\nBuilds a Feedback of the corresponding type for this builder.\n\n#### Return\n\n\n[QuizFeedback](/apps-script/reference/forms/quiz-feedback) --- [QuizFeedback](/apps-script/reference/forms/quiz-feedback)\n\n*** ** * ** ***\n\n### `copy()`\n\nReturns a copy of this builder.\n\n#### Return\n\n\n[QuizFeedbackBuilder](#) --- [QuizFeedbackBuilder](#)\n\n*** ** * ** ***\n\n### `set``Text(text)`\n\nSets the feedback text.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------|----------|--------------|\n| `text` | `String` | the new text |\n\n#### Return\n\n\n[QuizFeedbackBuilder](#) --- this [QuizFeedbackBuilder](#), for chaining"]]