Class QuizFeedback
MasukanKuis
Implementasi bean Masukan, yang berisi properti yang umum untuk semua masukan, seperti
teks atau link tampilan.
Masukan dapat ditambahkan ke item Form
yang dapat dinilai.
// 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);
Metode
Metode | Jenis hasil yang ditampilkan | Deskripsi singkat |
getLinkUrls() | String[] | Mendapatkan daftar URL yang terkait dengan Masukan. |
getText() | String | Mendapatkan teks tampilan Masukan. |
Dokumentasi mendetail
getLinkUrls()
Mendapatkan daftar URL yang terkait dengan Masukan. Link ini ditampilkan kepada pengguna sebagai daftar
link yang bermanfaat.
Pulang pergi
String[]
— daftar URL yang terkait dengan Masukan
getText()
Mendapatkan teks tampilan Masukan. Teks ini ditampilkan kepada pengguna setelah mereka mengirimkan
respons.
Pulang pergi
String
— teks Masukan
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-12-22 UTC.
[null,null,["Terakhir diperbarui pada 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"]]