Class QuizFeedback
แบบทดสอบความคิดเห็น
การใช้งาน Bean ของความคิดเห็นซึ่งมีพร็อพเพอร์ตี้ที่เหมือนกันสำหรับความคิดเห็นทั้งหมด เช่น แสดงข้อความหรือลิงก์
คุณสามารถเพิ่มความคิดเห็นลงในรายการ 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()
.setDisplayText(
'Good answer, but not quite right. Please review chapter 4 before next time.',
)
.addLink('http://wikipedia.com/osmosis');
textItem.setFeedbackForIncorrect(feedback);
เมธอด
วิธีการ | ประเภทการแสดงผล | รายละเอียดแบบย่อ |
getLinkUrls() | String[] | รับรายการ URL ที่เชื่อมโยงกับความคิดเห็น |
getText() | String | รับข้อความที่แสดงของความคิดเห็น |
เอกสารประกอบโดยละเอียด
getLinkUrls()
รับรายการ URL ที่เชื่อมโยงกับความคิดเห็น รายการเหล่านี้จะแสดงต่อผู้ใช้เป็นรายการลิงก์ที่มีประโยชน์
รีเทิร์น
String[]
— รายการ URL ที่เชื่อมโยงกับความคิดเห็น
getText()
รับข้อความที่แสดงของความคิดเห็น ข้อความนี้จะแสดงต่อผู้ใช้หลังจากที่ส่งคำตอบแล้ว
รีเทิร์น
String
— ข้อความของความคิดเห็น
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-22 UTC
[null,null,["อัปเดตล่าสุด 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"]]