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()
取得與意見回饋相關聯的網址清單。這些資訊會以有用的連結清單形式顯示給使用者。
回攻員
String[]
:與意見回饋相關聯的網址清單
getText()
取得意見回饋的顯示文字。使用者提交回覆後,系統會向他們顯示這段文字。
回攻員
String
:意見回饋文字
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-22 (世界標準時間)。
[null,null,["上次更新時間:2024-12-22 (世界標準時間)。"],[[["`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"]]