Class QuizFeedback

測驗意見回饋

代表可與可評分表單項目建立關聯的回饋,內含顯示文字和實用連結等屬性。

您可以為可評分的 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()
        .setText(
            '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:意見回饋的文字