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);
روش ها
روش | نوع برگشت | شرح مختصر |
---|
get Link Urls() | String[] | فهرستی از URL های مرتبط با بازخورد را دریافت می کند. |
get Text() | String | متن نمایش بازخورد را دریافت می کند. |
مستندات دقیق
get Link Urls()
فهرستی از URL های مرتبط با بازخورد را دریافت می کند. اینها به عنوان لیستی از پیوندهای مفید به کاربر نمایش داده می شوند.
بازگشت
String[]
- لیستی از URL های مرتبط با بازخورد
get Text()
متن نمایش بازخورد را دریافت می کند. این متن پس از ارسال پاسخ به کاربر نشان داده می شود.
بازگشت
String
- متن بازخورد
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-12-17 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-12-17 بهوقت ساعت هماهنگ جهانی."],[[["`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"]]