Class QuizFeedback
TestOpinie
Implementacja beana opinii, która zawiera właściwości wspólne dla wszystkich opinii, takie jak tekst wyświetlania lub linki.
Opinie można dodawać do ocenianych elementów 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);
Metody
Metoda | Zwracany typ | Krótki opis |
getLinkUrls() | String[] | Pobiera listę adresów URL powiązanych z opinią. |
getText() | String | Pobiera wyświetlany tekst opinii. |
Szczegółowa dokumentacja
getLinkUrls()
Pobiera listę adresów URL powiązanych z opinią. Są one wyświetlane użytkownikowi jako lista przydatnych linków.
Powrót
String[]
– lista adresów URL powiązanych ze Spostrzeżeniami
getText()
Pobiera wyświetlany tekst opinii. Ten tekst jest wyświetlany użytkownikowi po przesłaniu odpowiedzi.
Powrót
String
– tekst opinii,
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-12-22 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]