Class QuizFeedback

测验反馈

Feedback 的 Bean 实现,其中包含所有反馈通用的属性,例如显示文本或链接。

您可以为已评分的 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 - 反馈的文本