- 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. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
lastSubmittedTime
|
Output only. Timestamp for the most recent time the response was submitted. Does not track changes to grades. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. 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 ( |
questionId
string
Output only. The question's ID. See also Question.question_id
.
grade
object (
Grade
)
Output only. The grade for the answer if the form was a quiz.
value
. The user's answer. value
can be only one of the following:textAnswers
object (
TextAnswers
)
Output only. The specific answers as text.
fileUploadAnswers
object (
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 } |
value
string
Output only. The answer value.
Formatting used for different kinds of question:
-
ChoiceQuestion
-
RADIO
orDROP_DOWN
: A single string corresponding to the option that was selected. -
CHECKBOX
: Multiple strings corresponding to each option that was selected.
-
-
TextQuestion
: The text that the user entered. -
ScaleQuestion
: A string containing the number that was selected. -
DateQuestion
- Without time or year: MM-DD e.g. "05-19"
- With year: YYYY-MM-DD e.g. "1986-05-19"
- With time: MM-DD HH:MM e.g. "05-19 14:51"
- With year and time: YYYY-MM-DD HH:MM e.g. "1986-05-19 14:51"
-
TimeQuestion
: String with time or duration in HH:MM format e.g. "14:51" -
RowQuestion
withinQuestionGroupItem
: The answer for each row of aQuestionGroupItem
is represented as a separateAnswer
. Each will contain one string forRADIO
-type choices or multiple strings forCHECKBOX
choices.
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. |