Class QuizFeedback

QuizFeedback

「意見回饋」的實作方式,其中包含所有意見回饋的通用屬性,例如顯示文字或連結。

您可以在可評分的 Form 項目中新增意見回饋。

// Setting feedback which should be automatically shown when a user responds to a question
// incorrectly.
var textItem = form.addTextItem().setTitle('Re-hydrating dried fruit is an example of what?');
var 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取得意見回饋的顯示文字。

內容詳盡的說明文件

getLinkUrls()

取得與意見回饋相關的網址清單。系統會以實用連結清單的形式向使用者顯示這些連結。

回攻員

String[]:與意見回饋相關的網址清單


getText()

取得意見回饋的顯示文字。這段文字會在使用者提交回應後顯示。

回攻員

String:意見回饋的文字