Skip to content

Form Response

Base model for a form response.

PropertyTypeRequiredDescription
id uuid Yes The unique identifier for the form response
formId uuid Yes The form being responded to
response record Yes The response to the form
status FormResponseStatus Yes The status of the form response
validationErrors array<unknown> No The validation errors for the form response
customFields record<CustomField> No Custom attributes about the form response
createdAt utcDateTime Yes The timestamp (in UTC) at which the record was created.
lastModifiedAt utcDateTime Yes The timestamp (in UTC) at which the record was last modified.

A JSON example of this model.

{
"id": "083b4567-e89d-42c8-a439-6c1234567890",
"form": {
"id": "b7c1e2f4-8a3d-4e2a-9c5b-1f2e3d4c5b6a",
"name": "Form A",
"description": "Form A description"
},
"response": {
"name": {
"first": "John",
"last": "Doe"
},
"email": "john.doe@example.com",
"phone": "555-123-4567"
},
"status": {
"value": "complete",
"description": "The form response is complete"
},
"validationErrors": [],
"createdAt": "2024-01-01T00:00:00Z",
"lastModifiedAt": "2024-01-01T00:00:00Z"
}
Version Changes
0.2.0
  • Added FormResponseBase model

The status of a form response.

PropertyTypeRequiredDescription
value FormResponseStatusOptions Yes The status of the form response, from a predefined set of options
customValue string No A custom value for the status
description string No A human-readable description of the status

A JSON example of this model.

{
"value": "complete",
"description": "The form response is complete"
}
Version Changes
0.2.0
  • Added FormResponseStatus model

The options for the status of a form response.

ValueDescription
notStarted The form response has not been started
inProgress The form response is in progress
complete The form response is complete, meaning all required fields have been filled out and there are no validation errors

A JSON example of this model.

"inProgress"
Version Changes
0.2.0
  • Added FormResponseStatusOptions enum