SurveyAnswer
Represents a single answer to a survey question within a response. Stores the value provided by the respondent (text, number, selections, boolean) and links it to both the question and the response.
4 properties
Schema
Properties
| Property | Type | Mode | Description | Required |
|---|---|---|---|---|
| response | SurveyResponse | stored | Reference to the response this answer belongs to | Required |
| question | SurveyQuestion | stored | Reference to the question being answered | Required |
| value | json | stored | The answer value (string, number, array of selections, boolean, etc.) | Required |
| metadata | json | stored | Additional answer metadata (time spent on question, etc.) | Optional |
Examples
Example 1
{
"@type": "SurveyAnswer",
"response": {
"@type": "SurveyResponse",
"survey": {
"@type": "Survey",
"title": "Customer Satisfaction Survey"
}
},
"question": {
"@type": "SurveyQuestion",
"text": "How satisfied are you with our service?"
},
"value": 4
}Example 2
{
"@type": "SurveyAnswer",
"response": {
"@type": "SurveyResponse",
"survey": {
"@type": "Survey",
"title": "Customer Satisfaction Survey"
}
},
"question": {
"@type": "SurveyQuestion",
"text": "What aspects of our service did you like?"
},
"value": [
"Speed",
"Quality",
"Customer Support"
]
}Example 3
{
"@type": "SurveyAnswer",
"response": {
"@type": "SurveyResponse",
"survey": {
"@type": "Survey",
"title": "Employee Engagement Survey"
}
},
"question": {
"@type": "SurveyQuestion",
"text": "How likely are you to recommend our company as a place to work?"
},
"value": 8
}Example 4
{
"@type": "SurveyAnswer",
"response": {
"@type": "SurveyResponse",
"survey": {
"@type": "Survey",
"title": "Vehicle Inspection Checklist"
}
},
"question": {
"@type": "SurveyQuestion",
"text": "Are the brake lights functioning?"
},
"value": true
}