- Resource: FormResponse
- Answer
- TextAnswers
- TextAnswer
- FileUploadAnswers
- FileUploadAnswer
- Grade
- Methods
Resource: FormResponse
A form response.
JSON representation |
---|
{
"formId": string,
"responseId": string,
"createTime": string,
"lastSubmittedTime": string,
"respondentEmail": string,
"answers": {
string: {
object ( |
Fields | |
---|---|
formId |
Output only. The form ID. |
responseId |
Output only. The response ID. |
createTime |
Output only. Timestamp for the first time the response was submitted. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
lastSubmittedTime |
Output only. Timestamp for the most recent time the response was submitted. Does not track changes to grades. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
respondentEmail |
Output only. The email address (if collected) for the respondent. |
answers |
Output only. The actual answers to the questions, keyed by questionId. An object containing a list of |
totalScore |
Output only. The total number of points the respondent received for their submission Only set if the form was a quiz and the response was graded. This includes points automatically awarded via autograding adjusted by any manual corrections entered by the form owner. |
Answer
The submitted answer for a question.
JSON representation |
---|
{ "questionId": string, "grade": { object ( |
Fields | |
---|---|
questionId |
Output only. The question's ID. See also |
grade |
Output only. The grade for the answer if the form was a quiz. |
Union field value . The user's answer. value can be only one of the following: |
|
textAnswers |
Output only. The specific answers as text. |
fileUploadAnswers |
Output only. The answers to a file upload question. |
TextAnswers
A question's answers as text.
JSON representation |
---|
{
"answers": [
{
object ( |
Fields | |
---|---|
answers[] |
Output only. Answers to a question. For multiple-value |
TextAnswer
An answer to a question represented as text.
JSON representation |
---|
{ "value": string } |
Fields | |
---|---|
value |
Output only. The answer value. Formatting used for different kinds of question:
|
FileUploadAnswers
All submitted files for a FileUpload question.
JSON representation |
---|
{
"answers": [
{
object ( |
Fields | |
---|---|
answers[] |
Output only. All submitted files for a FileUpload question. |
FileUploadAnswer
Info for a single file submitted to a file upload question.
JSON representation |
---|
{ "fileId": string, "fileName": string, "mimeType": string } |
Fields | |
---|---|
fileId |
Output only. The ID of the Google Drive file. |
fileName |
Output only. The file name, as stored in Google Drive on upload. |
mimeType |
Output only. The MIME type of the file, as stored in Google Drive on upload. |
Grade
Grade information associated with a respondent's answer to a question.
JSON representation |
---|
{
"score": number,
"correct": boolean,
"feedback": {
object ( |
Fields | |
---|---|
score |
Output only. The numeric score awarded for the answer. |
correct |
Output only. Whether the question was answered correctly or not. A zero-point score is not enough to infer incorrectness, since a correctly answered question could be worth zero points. |
feedback |
Output only. Additional feedback given for an answer. |
Methods |
|
---|---|
|
Get one response from the form. |
|
List a form's responses. |