Enum FeedbackType
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
نوع الملاحظات
مصنّف يمثّل الأنواع المتوافقة من الملاحظات. يمكن الوصول إلى أنواع الملاحظات من FormApp.FeedbackType
.
لاستدعاء قائمة أرقام صحيحة، عليك استدعاء الصف الرئيسي والاسم والخاصية. مثلاً:
FormApp.FeedbackType.CORRECT
// Open a form by ID and add a new list item.
const form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
const item = form.addListItem();
item.setTitle('Do you prefer cats or dogs?');
// Set "Dogs" as the correct answer to this question.
item.setChoices([
item.createChoice('Dogs', true),
item.createChoice('Cats', false),
]);
// Add feedback which will be shown for correct responses; ie "Dogs".
item.setFeedbackForCorrect(
FormApp.createFeedback().setDisplayText('Dogs rule, cats drool.').build(),
);
أماكن إقامة
الموقع | النوع | الوصف |
CORRECT | Enum | ملاحظات يتم عرضها تلقائيًا للمجيبين عن سؤال تمّت الإجابة عنه بشكل صحيح.
لا يمكن إرفاق الملاحظات الصحيحة إلا بنوع سؤال يتيح وضع الدرجات تلقائيًا (مثل مربّعات الاختيار أو علامتَي الاختيار أو مربّعات الاختيار). |
INCORRECT | Enum | ملاحظات يتم عرضها تلقائيًا للمجيبين على سؤال تمّت الإجابة عنه بشكل غير صحيح.
لا يمكن إرفاق الملاحظات غير الصحيحة إلا بنوع سؤال يتيح وضع الدرجات تلقائيًا (مثل مربع الاختيار أو مربّع الاختيار أو مربّع الاختيار). |
GENERAL | Enum | الملاحظات التي يتم عرضها تلقائيًا للمستجيبين عند إرسال ردّهم
لا يمكن إرفاق الملاحظات العامة إلا بأنواع الأسئلة التي لا تتيح وضع الدرجات تلقائيًا، ولكنها
يمكن وضع درجات لها (أي كل أنواع الأسئلة باستثناء الأسئلة من النوع "شبكة متعددة الاختيارات"). |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003eFeedbackType\u003c/code\u003e is an enum used to represent different types of feedback in Google Forms, accessible via \u003ccode\u003eFormApp.FeedbackType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes three properties: \u003ccode\u003eCORRECT\u003c/code\u003e, \u003ccode\u003eINCORRECT\u003c/code\u003e, and \u003ccode\u003eGENERAL\u003c/code\u003e, used to specify feedback for correct answers, incorrect answers, and general feedback respectively.\u003c/p\u003e\n"],["\u003cp\u003eFeedback is displayed to respondents automatically based on their answers and the type of feedback specified.\u003c/p\u003e\n"],["\u003cp\u003eEach feedback type is associated with specific question types it can be applied to for providing targeted feedback to users.\u003c/p\u003e\n"]]],[],null,["# Enum FeedbackType\n\nFeedbackType\n\nAn enum representing the supported types of feedback. Feedback types can be accessed from [FormApp.FeedbackType](/apps-script/reference/forms/form-app#FeedbackType).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nFormApp.FeedbackType.CORRECT`.\n\n```javascript\n// Open a form by ID and add a new list item.\nconst form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');\nconst item = form.addListItem();\nitem.setTitle('Do you prefer cats or dogs?');\n// Set \"Dogs\" as the correct answer to this question.\nitem.setChoices([\n item.createChoice('Dogs', true),\n item.createChoice('Cats', false),\n]);\n// Add feedback which will be shown for correct responses; ie \"Dogs\".\nitem.setFeedbackForCorrect(\n FormApp.createFeedback().setDisplayText('Dogs rule, cats drool.').build(),\n);\n``` \n\n### Properties\n\n| Property | Type | Description |\n|-------------|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `CORRECT` | `Enum` | Feedback that is automatically displayed to respondents for a question answered correctly. Correct feedback can only be attached to a question type that supports autograding (e.g. radio, checkbox, select) |\n| `INCORRECT` | `Enum` | Feedback that is automatically displayed to respondents for a question answered incorrectly. Incorrect feedback can only be attached to a question type that supports autograding (e.g. radio, checkbox, select) |\n| `GENERAL` | `Enum` | Feedback that is automatically displayed to respondents when they submit their response. General feedback can only be attached to question types that do not support auto-grading, but are gradeable (ie everything but grid) |"]]