Class QuizFeedback
クイズのフィードバックフィードバックの Bean 実装。表示テキストやリンクなど、すべてのフィードバックに共通のプロパティが含まれています。
フィードバックは、採点可能な Form
アイテムに追加できます。
// 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);
詳細なドキュメント
getLinkUrls()
フィードバックに関連付けられている URL のリストを取得します。これらは、役立つリンクのリストとしてユーザーに表示されます。
戻る
String[]
- フィードバックに関連付けられた URL のリスト
getText()
フィードバックの表示テキストを取得します。このテキストは、ユーザーが回答を送信した後に表示されます。
戻る
String
- フィードバックのテキスト
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-22 UTC。
[null,null,["最終更新日 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"]]