Việc triển khai bean của một Feedback (Phản hồi) chứa các thuộc tính phổ biến cho tất cả phản hồi, chẳng hạn như văn bản hiển thị hoặc đường liên kết.
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().setDisplayText('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 liên kết với Ý kiến phản hồi. Những đường liên kết này sẽ hiển thị cho người dùng dưới dạng danh sách các đường liên kết hữu ích.
Cầu thủ trả bóng
String[] – danh sách URL liên kết với Ý kiến phản hồi
getText()
Lấy văn bản hiển thị của nút Phản hồi. Văn bản này sẽ hiển thị cho người dùng sau khi họ gửi phản hồ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: 2024-12-22 UTC."],[[["`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"]]