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);
Methods
שיטה | סוג הערך המוחזר | תיאור קצר |
getLinkUrls() | String[] | הפונקציה מקבלת רשימה של כתובות ה-URL שמשויכות למשוב. |
getText() | String | הפונקציה מקבלת את הטקסט המוצג של המשוב. |
מסמכים מפורטים
getLinkUrls()
הפונקציה מקבלת רשימה של כתובות ה-URL שמשויכות למשוב. הם מוצגים למשתמש כרשימה של קישורים מועילים.
חזרה
String[]
– רשימה של כתובות ה-URL שמשויכות למשוב
getText()
הפונקציה מקבלת את הטקסט המוצג של המשוב. הטקסט הזה מוצג למשתמש אחרי שהוא שולח תשובה.
חזרה
String
– הטקסט של המשוב
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]