Class QuizFeedback
TestGeri bildirim
Görüntüleme metni veya bağlantılar gibi tüm geri bildirimlerde ortak olan özellikleri içeren bir geri bildirimin bean uygulaması.
Not verilebilir Form
öğelerine geri bildirim eklenebilir.
// Setting feedback which should be automatically shown when a user responds to
// a question incorrectly.
const form = FormApp.create('My Form');
const textItem = form.addTextItem().setTitle(
'Re-hydrating dried fruit is an example of what?');
const feedback =
FormApp.createFeedback()
.setDisplayText(
'Good answer, but not quite right. Please review chapter 4 before next time.',
)
.addLink('http://wikipedia.com/osmosis');
textItem.setFeedbackForIncorrect(feedback);
Yöntemler
Yöntem | Dönüş türü | Kısa açıklama |
getLinkUrls() | String[] | Geri bildirim ile ilişkili URL'lerin listesini alır. |
getText() | String | Geri bildirimin görünen metnini alır. |
Ayrıntılı dokümanlar
getLinkUrls()
Geri bildirim ile ilişkili URL'lerin listesini alır. Bunlar kullanıcıya faydalı bağlantılar listesi olarak gösterilir.
Return
String[]
: Geri bildirim ile ilişkili URL'lerin listesi
getText()
Geri bildirimin görünen metnini alır. Bu metin, kullanıcı yanıt gönderdikten sonra gösterilir.
Return
String
: Geri bildirimin metni
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: 2024-12-22 UTC.
[null,null,["Son güncelleme tarihi: 2024-12-22 UTC."],[[["`QuizFeedback` objects store common feedback properties like display text and links for Google Forms."],["Feedback can be linked to form items and automatically displayed based on user responses (e.g., incorrect answers)."],["Developers can use `getLinkUrls()` and `getText()` methods to retrieve associated URLs and display text from `QuizFeedback` objects."]]],["Feedback, used with gradeable form items, provides display text and links. Feedback is created via `FormApp.createFeedback()`, allowing the setting of display text with `setDisplayText()` and adding links with `addLink()`. `setFeedbackForIncorrect()` associates the feedback with a question to be shown on incorrect responses. The methods `getLinkUrls()` retrieves associated URLs, and `getText()` gets the feedback's display text. These features offer customized information and guidance for users.\n"]]