Class QuizFeedback
Feedbacksui quiz
L'implementazione del bean di un feedback, che contiene proprietà comuni a tutti i feedback, ad esempio il testo visualizzato o i link.
I feedback possono essere aggiunti agli elementi Form
valutabili.
// 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);
Metodi
Metodo | Tipo restituito | Breve descrizione |
getLinkUrls() | String[] | Recupera un elenco degli URL associati al feedback. |
getText() | String | Recupera il testo visualizzato del feedback. |
Documentazione dettagliata
getLinkUrls()
Recupera un elenco degli URL associati al feedback. Questi vengono mostrati all'utente come un elenco di link utili.
Invio
String[]
: un elenco degli URL associati al feedback
getText()
Recupera il testo visualizzato del feedback. Questo testo viene mostrato all'utente dopo che ha inviato una risposta.
Invio
String
: il testo del feedback
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-12-22 UTC.
[null,null,["Ultimo aggiornamento 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"]]