Class QuizFeedback
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Phản hồiBài kiểm tra
Biểu thị ý kiến phản hồi có thể liên kết với các mục biểu mẫu có thể chấm điểm, chứa các thuộc tính như văn bản hiển thị và đường liên kết hữu ích.
Bạn có thể thêm ý kiến phản hồi vào các mục Form có thể chấm điểm.
// Setting feedback which should be automatically shown when a user responds to// a question incorrectly.constform=FormApp.create('My Form');consttextItem=form.addTextItem().setTitle('Re-hydrating dried fruit is an example of what?');constfeedback=FormApp.createFeedback().setText('Good answer, but not quite right. Please review chapter 4 before next time.',).addLink('http://wikipedia.com/osmosis');textItem.setFeedbackForIncorrect(feedback);
Lấy danh sách các URL được liên kết với Ý kiến phản hồi. Những đường liên kết này sẽ xuất hiện dưới dạng một danh sách các đường liên kết hữu ích cho người dùng.
Cầu thủ trả bóng
String[] – danh sách các URL được liên kết với phần Phản hồi
getText()
Lấy văn bản hiển thị của Phản hồi. Người dùng sẽ thấy văn bản này sau khi gửi câu trả lời.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2026-03-06 UTC."],[],["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"]]